Could be that they relied on AI to generate the gnarly regex ¯\_(ツ)_/¯
Natural language -> fully working one, I don't mean some email validators but way more complex stuff. Although, I've recently had a case which was too much even for regexes in any form or spec, then sort of grammar-based parser needed to be done from scratch.