I'm trying to config a Build Quality Checks task to get errors like ones below using a regex expression.
ERROR: abc
ERROR: xyz
The regex expression that I used was the one below. The idea is to return the data as a named group 'message'
/ERROR: (?<message>.+)/ig
Azure keeps returning that the regex expression is invalid
##[warning]The expression '/^ERROR: (?<message>.+)/ig' is not a valid regular expression and will be ignored.
From my understanding this regex expression is correct according to https://github.com/MicrosoftPremier/VstsExtensions/blob/master/BuildQualityChecks/en-US/WarningsPolicy.md documentation.
If I check this regex expression in https://regex101.com/ it work fine. What am I doing wrong?
Thanks.

