No, my regex ix fine I think. You need to specify the head / as without it it's expensive. Also it depends on where within Dynatrace you are using it.
It works for the request naming rules (using the aaa placeholder):
RUM has different regex limits, so it's better to ask where you need it exactly.