Armed group lost large swaths of Syria's border with Turkey, as Kurds regained control of traditionally Kurdish areas.