Pakistan could not take a neutral stance because the border was open and Taliban were hiding in Pakistan. Question is why didn't Pakistan stay neutral after Soviets left Afghanistan and provide support to Taliban? Why wasn't the border fence built then? That's where it all went wrong.
Working with the US in war time is not a big deal.
US is an enemy of Afghanistan, not Pakistan. It is Pakistan's largest trading partner and arms supplier with a relationship that goes back since the 1950s.
AQ/Taliban psyops is this, to minimize Pakistani interests and bring its interests to the forefront to make you the sacrificial lamb. So their enemies are your enemies. Bit like what they have done with Palestine, suddenly their enemies are your enemies. It's just a psyops.
Does anyone care about Kashmir and what India has done? Does anyone regard India as an enemy even if they sympathize with the cause?
Musharraf is a national hero, he put the Sharif brothers in jail and saved Pakistan from a Taliban/AQ takeover. If it wasn't for him more than a 100 million Pakistanis would have become brainwashed and society would have collapsed and it would have become a Syria.