TrigValidation: Make reference counts comparison regex more robust
Fixes ATR-21887 causing random CI failures and regular ART test failures. The offending message should not be part of the reference and it is removed with the updated regular expression.