It should just work, if you use the latest v2.0 product (v126.96.36.1998 or later).
For a long time the syntax where you negate the RewriteCond with a leading ! was not supported in IIRF. you had to use a (?!pattern), which was a pain.
As of IIRF v188.8.131.528, the leading ! in a pattern on a RewriteCond is treated as negation. The rest of that file is fully compatible with IIRF.
So... use v2.0 (latest) and you should be good to go.