Modern Network Manager supports wireguard by default, including one in Ubuntu 22.04 (maybe earlier). It's compiled-in, so wireguard package isn't needed. However, as of 22.04 Ubuntu network settings didn't support WG yet.
This guide walks you through setting up WireGuard VPN using NetworkManager on Linux.