So if you want to make the same argument, you will have to declare china's CCP to be a terrorist organization - and all of the legal implications that entails.
That's not a constitutional requirement. There's no law that says the government can only do this to terrorists. In fact, even if somebody is a terrorist, if they're American, it would still be unconstitutional to deprive their freedom of speech. ByteDance, as a foreign entity, enjoys no such protection.
So if you want to make the same argument, you will have to declare china's CCP to be a terrorist organization - and all of the legal implications that entails.