A VPN gateway or a router has packets that enter on one interface and leave on another. Normal ufw rules only look at traffic for the host itself.
sudo ufw route allow in on wg0 out on eth0 to 192.168.1.0/24
ufw route writes rules for forwarded traffic. The rule above lets traffic from the wg0 interface go out to the 192.168.1.0/24 network via eth0. Forwarding itself must be on as well: enable net/ipv4/ip_forward=1 in /etc/ufw/sysctl.conf, then run sudo ufw disable and sudo ufw enable, because ufw reads that file when it is enabled. Unless the routed policy is set to allow, nothing passes without a rule like this one.
Further reading: ufw manual page