Islamabad accuses Afghanistan of failing to act against militant groups that carry out attacks in Pakistan, which the Taliban government denies. […] An Afghan official reported multiple civilians wounded near the Torkham border crossing, at a camp for people returning from Pakistan.
The groups in question are the Pakistani Taliban (TTP) and ISIS-K.



I have no idea whose side Pakistan is on.
This other article has some details. Note there is more to it than just this excerpt, I might be leaving out key information unintentionally while trying to find a source
https://time.com/7381546/pakistan-afghanistan-taliban-war-strikes-attacks-border-clash-terrorism-explainer/
China’s. They’re basically a Chinese vassal these days.
They’re on china’s side against India, I don’t know that they’re that close as nations otherwise
They’re completely economically dependent on China so that’s pretty much a moot point.
I’m not sure if it’s that clear, I’ve also seen accusations the other way.
https://en.wikipedia.org/wiki/Cypher_No._I-0678
I think in reality, the world has shifted a lot from the bipolarity of the cold war and it’s no longer possible (or productive) to try and figure out which “side” every nation is on.
They don’t either, so you’re in good company.