There's has always been a solution. Host your own git server.
Well collaboration does not work easily with own git server, integration with many other tools and it is as good as doing private development.
Gitea is the closest thing to github. Obviously you'll need to point your team to the server to collaborate but you won't be dealing with nonsense government bans on github. Is just a solution not a perfect one, but a solution nevertheless.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.