Don't use shorthand match on routes with inappropriate symbols

Fixes exception from #18211
Test in this pull-request shows an example.
@pixeltrix In your example appropriate shortcut route still matches (the value of a matched string does not matter, only whether there is a match or not).

The regexp was changed with an explicit purpose not to match on inappropriate routes which it does.