Validate and sanitize regular expressions to prevent ReDoS attacks
npm install @philiprehberger/safe-regex