Here's a brief reminder of Pakistani history for all and sundry visitors to this thread.
USA, Japan, most of Eurozone, IMF all sanctioned Pakistan in 1998 following our nuclear tests. WHATEVER FLOWS OR FLOWED IN AND OUT OF AFG/IRAN WAS DWARFED BY OUR TRADE WITH USA, even in late 90s prior to nuclear tests.
Of course, and interestingly enough, our tests were greeted positively in 1998 by Afg, Iran, KSA, China and other "global south" nations but trade with such nations was far smaller than with USA and Europe (and, barring China, that still is the case) - those were different times when all our interests aligned better.