This story would make a great culture test! "Would you hire this candidate?"
You only want to work with team leads who agree with your answer, whatever that might be.
Personally, I love working with folks who enjoy playing with technology, so I'm a Hell Yes. I don't see a lot of risk that this candidate would actually try to ship that regex to production.