LXD 5.0.1 on Ubuntu 22.04 no longer creates NAT rules

You could try this to force ufw to use only classic iptables rather than the partially implemented iptables nftables shim:

Recommend rebooting afterwards to ensure all rulesets are cleanly recreated.