That's one of the things I wouldn't use chatgpt for. You cannot trust chatgpt and understanding a complex regex that you didn't write yourself is hard. Proofreading it isn't significantly faster than writing it yourself.