@ram1 I don’t see any examples in the docs where the wildcard isn’t the last value.
If it’s not supported, you could try an Edge Function: