Why would one trust a (Microsoft owned) company that has history of blocking user’s out of their repositories, because of their nationality?
Gitlab does the same. If you don’t want to be subject to US sanctions, then you’ll have to use a service hosted outside of the US: https://about.gitlab.com/blog/2018/07/19/gcp-move-update/
I stopped trusting and relying on third-party services for critical stuff long ago (git/email/storage/etc) and self-host all these.
C or Go (depending on the project)