I'm for changing the law on death penalty in Israel: right now it only applies to Nazis complicit in the Holocaust, I think it should be "crimes against the Jewish people" to include the atrocities of 7th October. IMHO terrorists who took part in 7th October are simply not fit to live among humans. Since we're not going to drop them on a deserted island they need to be executed. After due process, of course. Hang them, because we're civilized people, unlike them. (Otherwise I'd say kill them very slowly, chopping off a small body part a day until they die....) But we're civilized......
I'm not an international lawyer but IMO they're not POWs. Nevertheless, they should be treated humanely in the meantime simply because you treat people who are in your captivity humanely. That's a universal ethical obligation. One that they ignored but we shouldn't.