Wild card support for Substitute variables in files

I know you can use wildcards but i tried to do this
.*\function.json but i get an exception can you use the wild card to recurse down folders to find files?
what is the proper way? this is what i am trying to avoid doing:
Geocode\function.json
GeocodeError\function.json
GoogleResult\function.json
LeadUpdateError\function.json
LocationDispatchError\function.json
LocationDispatch\function.json
GoogleResultError\function.json
LeadUpdate\function.json
LocationUpdate\function.json
LocationUpdateError\function.json

Hi Marios,

Thanks for getting in touch. Prior to 3.12, this was not possible, however we introduced extended wildcard support in that release.

The syntax you are looking for is **\function.json. The ** will match all directories.

Hope that helps,

Robert W