I know that in France this right exists but under the condition of domicile. Every French resident has the right to a bank account regardless of their nationality (as long as they are legal).
If a bank refuses to open an account for you the Banque de France will take care of your case and designate one bank and they will have to onboard you by law. This is to promote banking “inclusivity” and the official communication line from the government is that everyone should have the right to a bank account.
This also works for businesses; and actually the domicile is based on the company residence, rather than the owner/shareholders which is great news for these unable to get access to banking especially living overseas. Also, banks refusing you need to provide the reason for rejecting you when they do, unlike in some other countries.