Insurgencies in AFG is the only solution. For every militant attack in Pakistan, Taliban should face the same in Afghanistan. There’s more extremism, ethnic divide, and poverty in Afghanistan than Pakistan. It won’t be creating Taliban 2.0 if Pakistan covertly backs multiple insurgencies in Afghanistan. Taliban are a militia which won’t be able to sustain counter insurgency ops for long. If Pakistan has to keep this cycle repeating for decades it’s still worth it. Until Afghanistan becomes stable and friendly towards Pakistan, it should stay in a state of civil war just like they put Pakistan in. The costs of sustaining insurgencies inside Afghanistan would be a fraction of what counter insurgency ops cost Pakistan. Against the Soviets and NATO, tribal areas were used by Taliban as a base but that won’t be the case for anti Taliban insurgencies in Afghanistan. Taliban don’t have the counter insurgency expertises USA had and doesn’t have the firepower Soviets had. Afghanistan is loosely united with many lawless areas with little Taliban control. These anti Taliban insurgencies can be fully based out of Afghanistan targeting Taliban. The only thing Pakistan would have to do is prevent any militants from crossing the border into Pakistan.
Also, Insurgencies in Afghanistan would break the support Taliban have among Muslim countries and the world. It would be better PR wise for Pakistan than openly launching an aerial campaign in Afghanistan.