Canada considers HAMAS a terrorist organization.
If you put on their identifier (keffiyeh), chant their slogans, stand in support, fundraise and occupy in their name, support the Oct 7 attack and protest for the eradication of the Jews, you're a HAMAS terrorist and a usefully idiot, so far as I'm concerned. Student or not.
If you're an international student, you should lose your visa and be sent home.
You should reap whatever social, financial and legal sanctions befall that group.
If your cause is secondary to your education and you can leave class for extended periods to protest, you should lose your student status and be expelled.