Extract important parts from the giant regex

We'll be reusing the parts for another regex
Fix regex for the exception-finding case

The reverse search looks for a die or warn, not preceded by "ERROR:"