How can I group multiple versions of one url within same item on my website?

Hi,

I’ll explain:

I’ve got two types of urls for the same page:
www.example.com/seo-custom-url-123
www.example.com/different-url-for-same-page-123/qwe/7
www.example.com/different-url-for-same-page-123/qwe/8
www.example.com/different-url-for-same-page-123/qwe/9

www.example.com/seo-custom-url-234
www.example.com/different-url-for-same-page-234/qwe/7
www.example.com/different-url-for-same-page-234/qwe/8
www.example.com/different-url-for-same-page-234/qwe/9

www.example.com/seo-custom-url-555
www.example.com/different-url-for-same-page-555/qwe/7
www.example.com/different-url-for-same-page-555/qwe/8
www.example.com/different-url-for-same-page-555/qwe/9

Now I would like to list all that urls in a table. If I search for term: /qwe/ I would get the list of the second type of urls:
www.example.com/different-url-for-same-page-555/qwe/7

But www.example.com/seo-custom-url-555 won’t appear on that list.

So should I use custom variables here? Can someone give me an example?

To put it simple, I’ve got a lot of different urls that I want to store them all inside a Category so I can identify them, and then use the API to export the data.

Thanks!