Ansar Allah has targeted random ships, including Russian tankers, and, most notably, was conducting these attacks before the October 7th attacks; their advocacy for Israel is a retcon. It's worth pointing out that if Ansar Allah succeeded in liberating Palestine, their next action would be to burn down all the mosques --- Palestinians are overwhelmingly Sunni (and Hamas is an explicitly Sunni organization), and Ansar Allah is at war with Sunnis in Yemen, where it has been destroying mosques for the last year.