(PE-5860) Add regex support to wrap-proxy

This PR adds regular expression support to the wrap-proxy function.
`string?` is a bit cleaner than `(instance? String ...)`