I think you are being ridiculous. If I understand your point, according to you the only way they could be included is if Hamas was a member of the UN. This is not a realistic bar.
The hostages were literally part of the agreement. They were part of the last one too, and many were released. Suggesting they weren’t included here is borderline delusional