Peers on a VPN change address often. A rule tied to the interface avoids chasing IP ranges.
sudo ufw allow in on tailscale0
sudo ufw allow in on tailscale0 to any port 22 proto tcp
The first line opens every port to traffic that arrives on tailscale0, the second only SSH. Public interfaces stay closed under the default deny policy. Use the narrow form if you do not want every device on the tailnet to reach every service. The interface must exist for the rule to match anything, so the name comes from ip link. Rules for an interface also survive a change of the VPN address.
Further reading: ufw manual page