allow regexes to pass through

path-to-regex allows strings, regexes and arrays, this PR simply adds support for passing regexes through (not interested in array support atm).