China has been extremely pragmatic and results-oriented. When Hong Kong was the most economically successful part of China, they were happy to leave it be and learn some lessons from it. Now the rest of China has largely caught up and it's time for them to make HK more like Shenzhen, rather than the other way around.
I think China played their hand too soon and the west is waking up to it.
Of course China is motivated to have Hong Kong aligned with it rather than flirting with the West. Whether the West is "waking up to it" is not so clear to me. The HK riots were a big deal in the Western media for a while but now we've moved on.
They weren't going to make big moves until they had built up their navy.
https://www.reuters.com/investigates/special-report/china-ar...
https://www.defenceconnect.com.au/maritime-antisub/4983-chin...