Suggestion: have GPT-3.5 also write out unit tests, both strings that should pass and ones that should fail, and run the JS version of the regex on that in-browser.
I find it's interpretating the intention of and figuring out the unhandled edge cases of an existing regex that drives me away from them. A tool you can ask "Hey how are you? Given this regex and this code context how will this fail?" would be valuable (always have to be nice to the AI)
There is absolutely no way I'm unleashing a regex on my system that's written by an AI. One of the biggest problems with RegEx isn't composing them, it's being able to read and understand them; they're a perfect example of something you shouldn't generate like this, because they're inscrutable and hard to check. I have difficulty reading RegEx when I'm the one who wrote it. Hell, I have a hard time keep complex RegEx straight in my head /while/ I write it.
regex is one of those things that people constantly bounce off of, for what seems to me purely aesthetic reasons, that's actually not that hard to understand. you just have to read every symbol individually.