The UN does not consider Hamas to be a terrorist organization.
The UN does not recognize Hamas as a terrorist group despite decades of suicide bombings, thousands of rockets launched indiscriminately at Israeli October 7th.
Palestine and Arabs on Israel Hamas ceasefire
CFR: What Is Hamas?
“The Palestinian militant group has struggled to govern Gaza and remains committed to violently resisting Israel. Its surprise attack against Israel in 2023 threatens a wider conflagration in the Middle East.”
https://www.cfr.org/backgrounder/what-hamas

HAMAS formed in late 1987 at the beginning of the first Palestinian intifada (uprising). Its roots are in the Palestinian branch of the Muslim Brotherhood, and it is supported by a robust sociopolitical structure inside the Palestinian territories. The group’s charter calls for establishing an Islamic Palestinian state in place of Israel and rejects all agreements made between the PLO and Israel. HAMAS’ strength is concentrated in the Gaza Strip and areas of the West Bank.

https://www.dni.gov/nctc/groups/hamas.html
