Iptables seems to lack support for cgroup v2

# iptables -t mangle -A OUTPUT -m cgroup --path system.slice/v2ray.service -j RETURN
iptables v1.8.6 (legacy): Couldn't load match `cgroup':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.

And there does not seem to be a related package.