Such a shame, then, that almost all of the software worth using is open-source.
I'll bet the US government regrets not nipping that in the bud while it could. Torvalds has said some pretty interesting things over the years, but I think the fact that he has not won a Nobel Peace Prize shows how much of a sham the Prize is. Without Linux, much of current software work that goes on outside of the US would've been impossible to get started.
Linus did expel russians who contribute to the linux kernel after NSA required him to do so, and that was well known incident. so he's not like what you portray him to be.
About Open-Source Software as a whole, USA will surely try to do so, especially that Open-Source have a lot of choke points like relying on github which was bought by Microsoft some years ago...
Unfortunately for them, they can get the results they wants, because China already has projects like Gitee which mirrors most of Open-Source Software available in github, and provide an alternative for Chinese developers instead of github or anything american.
Also Chinese developers contribute a lot to open-source software, and have their own developed open-source software, like OpenHarmony OS, SiYuan (PKMS), DeepSeek,...etc.
And cutting open-source from china will need to be cut from others and hinder them, around Asia, Africa, South America and even Europe will be affected...so they can't do that without a huge cost, and the possibility to be kicked out of open-source communities and the world just go on without them.
I swear if they can do that without being hurt, they will do it, but they don't have the ability to do it cleanly like they want.