https://en.wikipedia.org/wiki/2024_Ankara_prisoner_exchange
(also various US and UK citizens)
Yes, those create awful incentives and should absolutely not be legal.
> And if you do not save your own spies given a chance
One should not exchange spies for the cost of increasing political assasinations. Same reason as why you shouldn't pay kidnappers.
I strongly disagree for it to be used as a general approach for either spies or kidnappers. And who says it is exactly the cost? It is all coulda shoulda woulda and depends upon the particular situation.
You need to understand that those “above” are dumb bureaucrats playing dumb bureaucratic games. This is how societal selection works in current historical period.
As for this case, Kadyrov (or his inner circle) is known to be emo about any critic, and has been successfully killing the Chechen refugees in Europe for decades now. Ukrainians also seem to operate freely, which is a bit ironic when you remember that Ukrainian agents were taught in the same secret military schools Russian agents graduated from, and that Ukrainian oligarchs have mansions on Côte d'Azur and similar places right next to mansions of Russian oligarchs. I sometimes worry about their travel logistics in such complex times. Poor creatures!