Agreed the -f and -F options will be much faster, as the expression syntax is an interpretted string.
Note you can use -f and -F with strings, eg -f PAIRED,REVERSE,MREVERSE which may be more descriptive if you don't like the bit fields. Also the samtools flags command is a handy guide to the numeric and string names available.
Please create a Minimal, Reproducible Example to enable others to exactly reproduce your issue on their machines.