IMMUNIZE for rules

Is there a way to immunize a grammar rule? I understand exceptions, but these are less flexible, since they operate on the token level only. I need to use multiple exceptions on a rule, certain word combinations before, and some after, but not independent.
WRONG is wrong, except when the patterns are
A B WRONG C D
A F WRONG D E

I think antipatterns could be used here. There are examples in the German grammar.xml.

Sounds great. I will have a look at those.