Just noticed that the "LastVersion" file in the profile folder, as the name suggests, gets updated when the profile is opened with (another version of) BAS e.g. from 114.0.5735.91 to 117.0.5938.63. Therefore it's not suitable for our need to determine the original version of which a profile was created.
But at least can be said what was the latest BAS version that worked with it ;)
LIST XPATH PROFILES MODULE
-

The "List" module is used to work with arrays (lists). A list or array is an ordered finite set of elements. For example, a list of tasks, names, surnames, emails, accounts, phones. Often you will have to work with a large number of accounts for a site, and this is where lists come in handy. For example, you need to use only 1 specific account from the list, and not all.

Choose the right path, not the easy one. This module allows you to work with dynamic paths and get information from them. A dynamic path is a path to a file or folder that changes depending on its location. For example, you are working with profiles and you need to place them in the root folder with the script while it is running. Or, for example, you need to determine the file extension from the received path.

Work with profilies the module is designed to create and switch between browser profiles. By default, BAS uses the Chromium browser engine and the same profiles as in the regular Chrome browser. Profiles are folders that store your information about visited sites, extensions, cookies, saved cache from site pages and other important information. Profiles help you save authorization on sites and not re-authorize on them..
More information in telegram chat @bas_english