That's why India has been called the most important geo strategic relationship of the century for a number of years
Note, century.... It's about long term view, so maybe not this generation, or the next, maybe the one after is the target
Meanwhile you have the whites of UK and USA directed to hate Muslims, bash one group, cover another, strategy of tension.
India is also important in terms of just staying in the western system, the sco will attempt to create it's own system and just keeping India on the west not in Asia as much as it can is important
Finally, remember, Pakistan had a preferable run with the West for a good 50 years, got a nuke .... Just by existing, being an important cog in the western system at that time
But Pakistan did indeed go phull support tbh against the Soviets, they never tried to balance, funnily the Soviets left the Karachi steel mill, the us left the Taliban.