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

This PR adds regular expression support to the wrap-proxy function.
Kevin might've been hinting at the convention of using using `_` as the name for arguments that are unused in the body of the function.