'If only wishes were fishes'. The prospect of Soviet Russia and Pakistan post 1947 being together is pure fantasy. Yes, if majority of Pakistani's were like me, secular with left leaning tendancies this might have been possible.
A person is known by the company he keeps. Soviet Russia had partners inside Afghanistan and who were they? Westernized secular Afghans of the PDPA.
Link >
https://en.wikipedia.org/wiki/People's_Democratic_Party_of_Afghanistan
You think for a second Pakistan with it's religion frothing from the mouth and just about everything being explained in referance to 'Muslim' would have got along with a socialist, athiest state? You got to be kidding me?
Elsewhere like Syria, Iraq Soviet Russia allied itself with leftist secular forces. No chance of that in a country which dreams in being citadel of Islam.
And who supported the hardline Islamists in Afghanistan. well the picture below says it all. The mullah and Americans were best friends once.