I agree the situation is very complicated. From what I read, the support for Hamas was in the form of peace payments, which have backfired.
https://www.nytimes.com/2023/12/10/world/middleeast/israel-q...
https://www.nytimes.com/2023/12/10/world/middleeast/israel-q...
i think Netanyahu is awful, but there are other reasons for support for Hamas -- i say this as someone who studied this extensively prior to 2023.