Basically the Afghans claim Pakistan sovereign territory
This is partly because the Taliban who are almost entirely Pashtun ethnicity, share that ethnicity with Pakistani pashtuns in Pakistan KP province and believe KP should belong to them
Whether it's the Taliban, Afghan Republic, state or whomever we have had this problem now for over 80 years since Pakistan was established
Pakistan has tried multiple times to make peace, offer trade, open borders, free travel etc
Because Pakistan understands, we have bigger enemies to deal with and Afghans like the Kurds are USELESS and used by foreign powers to destabilize the region
But afghans have now attacked Pakistan for 80 years and their needless violence has only led to more and more pain and humiliation for Afghan people
Millions of Afghans have been thrown out of Pakistan, border is closed
Pakistan conducts air strikes against Targets etc
Pakistan hopes for the best, but that depends on afghans seeing sense