PostgreSQL : cannot connect with a created role
I found where the problem was! I had changed the line

password_encryption = scram-sha-256


in /var/lib/pgsql/data/postgresql.conf

but had forgotten to uncomment it…