Also Pakistan's current political existence is oxymoronic by nature.
"Islamic Republic" and Joyland & LGBT laws do not go together. The biggest blow to TTP is not military, it's destroying their ideological narrative.
Pakistan should review it's laws and make them more in accordance to Islam, even if not 100% accurate. (Don't go Afghan Taliban mode)
Generally every Muslim has a redline until they see a "Muslim" state as no longer Muslim. Pakistan crosses that redline giving fuel to TTP and even moderate folk lean towards their solution thinking perhaps they are right.
Pakistan needs to implement a modern form of Islamic law - even if not 100% accurate. After this if any people like the TTP have an issue with the state Islamically, it won't be to the degree where they pick up guns and sacrifice their life, they will be willing to work under the national political framework.
My belief is that after this is implemented, give TTP an option to surrender as they are fighting against an Islamic state, if they don't then move to annihilate them. Their support base, recruitment, will take a significant hit.
@PanzerKiel