Test, validate and match regular expressions
This regex matches CMake error output lines that include the pattern 'CMake Error at <file>:<line>' followed by a newline and an additional message line. It captures the error prefix, file path, line number, and the subsequent context line, making it useful for extracting and highlighting build errors from CMake logs in CI pipelines, text editors, or command-line tools. The pattern is case-insensitive for 'cmake' and 'error', and the 'm' flag allows matching across multiple lines.