Nextcloud Ubuntu 22.04
So I didn't lose any of my data as I had thought. It just happened to be the default encryption method used by Nextcloud's server-side encryption is depreciated in Ubuntu 22.04 and I had to modify my openssl.cnf file to enable the legacy encryption options again.
I think it wouldn't be a bad idea for Nextcloud to warn people which encryption it uses by default before enabling it so that they can choose for themselves.