Pakistan did not invite Afghanistan to a regional ministerial.

Pakistan now chairs the Economic Cooperation Organisation for two years, with transit connectivity among its priorities.

Pakistan does not recognise the Taliban government, and the organisation’s secretariat had suspended Afghanistan’s membership, the foreign office said.

The foreign office says Afghanistan’s return depends on it addressing terrorism threats from its soil.

How each outlet framed it
Dawn
ties the ECO exclusion to Pakistan's non-recognition of the Taliban and its terrorism demands on Kabul

Sources: Dawn