Steps to reproduce:
Apply a template such as "Cisco IOS SNMP" to host.
Configure a user macros with context such as in screenshot
Similar to ZBX-18209
Each time a trigger where regex is False (ie interface name Gi1/0/12) the error shown in screenshot is triggered in "Problems" and "Dashboard".
No issue if regex is True (trigger is ignored as expected).
No error, triggers normally.