It’s important to understand Russia’s current economic situation. The sanctions have been brutal, but China has managed to keep them afloat. A significant (nuclear) escalation would turn China against Putin immediately.
China’s economy is also in a precarious position right now. Their massive housing bubble is in the process of bursting. Xi will not tolerate instability on that scale.