GetMatch with variable - issue

I’ve solved this one by not trying to match the specific resource name with the use of GetMatch, but rather load all of them using {{ $resources := $page.Resources.ByType "image" }} and then sorting them out with where command.
Ref. --> [SOLVED] Media in separate folder and accessing with Page Resources