It is the biggest exchange of captives by the warring sides since the conflict began in 2015.