You are actually running two actions here. The curl command to download the GPG key, and the output redirection to a file. Only the first one is being run with sudo privileges. The correct sequence would be something like this. Note that this
curl -fsSL https://swupdate.openvpn.net/packages-repo.gpg | sudo tee /etc/apt/keyrings/openvpn.asc