Rich Chinese are getting their money out of the country, because if their money is in China, they don't really own it. The CCP could take it any day and there would be nothing they could do about it.
And then there is Western capital, used to rule of law and personal property. They don't see that reality as a realistic threat. So they keep pumping money into China. It will work. Until it doesn't. And then the CCP will simply take it.
But somehow I suspect that it will be a "too big to fail" situation, and all those losses will be socialized in the West, i.e. the Western governments pay for the losses probably.