The US and Israeli governments approve the sales according to news articles I've found: so one thing preventing China from using Pegasus is the US government not green-lighting it.
Additionally: you can count on China already having comparable technology anyway.