I've found a solution: download a VPN (best free VPN is TunnelBear), set the location to another country ( I've used the USA, i live in The Netherlands). Now login to your Microsoft account on Minecraft. It should work, then you can deactivate the VPN. You should be able to acces all realms, servers, marketplace and yout skins now.
Thanks!
I think this also affects other versions, such as all 1.17.0 versions, all 1.16.0 versions, and more