Relations have soured between former allies Afghanistan and Pakistan since the Taliban returned to power in 2021.