Can I test similar pages even if there is no homogeneity in their URLs (i.e. no common pattern)?

Yes, of course. Targeting by URL is the default option because in 80% of cases it is possible to target the required pages. Otherwise, you can use advanced targeting methods that trigger the test depending on the presence of a cookie, a variable JavaScript, or an element in the page’s source code.