That's silly. Taliban takeover was just a matter of time as soon as US has withdrawn, no matter who was in office or what else they did. No sufficient US support = ANA collapses = Taliban takeover.
How can you prevent something that has already happened? Its just a waste of resources.
The whole strategy would rely on the slow thinkers in Washington to not observe that they are a Chinese puppet already, effectively allowing Pakistan to double dip support.
Which unfortunately is what they may roll with. Much like the Taliban, they have realised that for the west, gestures, statements and appearances matter as much, if not more, than the facts on the ground. So they devise a simple strategy to double dip - say what one side wants to hear and be happy with it, but do what the other side who doesn't care about appearances wants. Everyone's happy.
The simple fact is that if Pakistan played for both teams in conflict vs freaking Taliban, how can they be considered a remotely reliable ally vs China, who has massive political, economic and military leverage over Pakistan? Consider who makes the bulk of Pakistan's new military hardware. With allies like this, you don't even need enemies, because they will provide those if needed.