Obtain the correct syntax reference:
man -s 5 pf.conf # on the target system
Common fixes for specific errors:
Provide these when asking for help on forums or with vendor support: pf configuration incompatible with pf program version
If you are on a custom system or bleeding-edge version: Obtain the correct syntax reference: man -s 5 pf