Dealing with multi-line regex in error_reporter.py