Even if Pakistan wanted to do something to reign in the extremists near the borders, they don't have the resources. Pakistan required a $7 billion loan from the IMF last September just to function. This is a very precarious situation for towns near the border or the tribals.
"Violent extremist groups continue to plot attacks in Pakistan".
"Violent extremist groups continue to plot attacks in Pakistan".
https://travel.state.gov/content/travel/en/traveladvisories/...
https://www.bbc.com/news/articles/c62rv7le52lo
https://www.macrotrends.net/global-metrics/countries/PAK/pak...
https://www.macrotrends.net/global-metrics/countries/ind/ind...