I think the worst case here is it writing a regex that mostly works but fails for some edge cases that you don't think to test but will encounter in production.
If I press a button and one is magically made for me, I can skip that step.
Skipping that step is bad.
However, I'm much more likely to trust a popular library implementation.
GPT-3 is known to be confidently wrong at things like basic arithmetic, so I really wouldn't trust it in scenarios like this. Maybe one day I'll be able to trust NN-generated code without testing it first, but we're not there yet.