there is almost NOT legacy iptables command (iptables) on modern OS (RHEL8, ubuntu22, etc) there can still be some lagecy ip_tables module loaded:
lsb_release -d; lsmod | grep tables; iptables -V
Description: Fedora release 38 (Thirty Eight)
nf_tables 368640 1454 nft_compat,nft_chain_nat
nfnetlink 20480 8 nft_compat,nfnetlink_acct,nf_conntrack_netlink,nf_tables,ip_set
Description: Red Hat Enterprise Linux release 8.8 (Ootpa)