Revert "(PUP-2922) Fix invalid regex"

This reverts commit a6b0eddfef3cd8b7152ce8e9dde4363ad7e44129.