See the slippery slope there?
Building vaccines is unlikely to be an activity in violation of the law; exporting algorithms to China is far more delicate.
We protect whistleblowers for a reason.
Software is, however, still regulated by export control (https://www.millercanfield.com/resources-alerts-845.html). This is currently a hot topic, as China has used facial recognition software in ongoing persecution of the Uighur minority. The US government responded by blacklisting several Chinese firms, and selling software to those firms could land an individual in jail (https://www.nytimes.com/2019/10/08/business/china-human-righ...).
I'm not saying Google did anything illegal in its liaison with the Chinese government to build out a search engine to their specifications. But it is exactly the sort of business venture that needs to be carefully monitored and that whistleblower protections are intended to guard.