[Issue 10089] regex that does not pass `regtest()` causes the entire process to exit