Under the hood, what's being generated is still a regex though. How can you be sure ANY code is correct, aside from testing it?
He's arguing that the nicer syntax is a valuable abstraction over regex's overly-complicated syntax, not that the syntax will be 100% the same as regex 100% of the time.
Apparently, we can't. So, you really want to improve your odds of writing correct code at the first attempt by making the language work with you rather than against.
Replacing a bunch punctuation with code that reads like prose is one way.