To use this syntax you need a 3rd party plugin. I use https://github.com/nfnty/vim-nftables, but others might work, too.