China did take anti-Russian stance. Their strategic investments were redirected to other countries. They are complying with embargoes, differently from Germany (https://twitter.com/kamilkazani/status/1563534129534500874 for a somewhat related story) and some other western countries. Of course you won’t find it mentioned in mainstream western media.
Invading Afghanistan was a mistake, but most of all it was a crime against humanity. And the worldview that got US into that - same as worldview of Putin, essentially the belief that their country has god-given right to invade others - is still there. There are more similarities, like protecting their war criminals from justice. Or ideologically-motivated oppression: https://twitter.com/erininthemorn/status/1563223736681381888.