CheckCompilerFlag: Fix the regex used to detect invalid options for GCC 10
The warning emmitted by GCC for invalid options have been updated to read "command-line option XXX is valid ..." instead of "command line option XXX is valid ..."
This commit updates the regex to make it valid with both the old and new warning message
Fixes: #21275 (closed)
Topic-rename: CheckCompilerFlag-gcc-10
Edited by Brad King