ChatGPT - Validate Regex for JS