Let's say I want to match a string and that string cannot contain character ; and @. How to write parser for that ?

I try using:
 *(!(';"'|'@'))
and
*(char_ - ';'|'@')
but both are failed to compile.

Thanks.