Consider the output:  The red color is triggered by the last rule, which marks any line containing `failed` red. **Workaround**: add a space before `failed` in the rule.