Regional countries like you pointed, need to take responsibility of integrating them in regional and international order so as not to allow external forces to exploit them to destabilize the entire region. All the non-regional countries and their agents and minions in the region should be kept out.I think now is a good time to negotiate with the Taliban. The Taliban should be allowed to join the SCO on behalf of Afghanistan and recognize their legitimacy. In exchange for them to comply with international law and cooperate with neighboring countries. Finally, peace and stability in Afghanistan will be achieved.