Postgresql scram-sha-256 support in Nextcloud

Seeing as md5 password hashing is no longer the pinnacle of security I was trying to get Nextcloud working with a postgresql with password_encryption = scram-sha-256, but it just errors out and can’t create the database, I don’t seem to be able to find any documentation on this?