Kinda weird to blame China for offering a loan Pakistan asked for. This whole situation seems to be more of a result of lack of market regulation. Western companies are taking advantage of this lack of regulation and the government’s response is to… let the working class pay even more for its already overpriced energy.
They should force those companies to use the energy they probably begged the government to provide for them or they’d leave the country, and in the meantime gradually transition to the cheaper solar energy.
If you read the article it describes how this phenomenon is really bad for the Pakistani government who are in debt and the working class who can’t invest in solar panels and thus end up having to pay way more for their already expensive energy to compensate for companies who are no longer using it.