It's important to remember that there are no 'good guys' in this whole shit show.
Iran was probably involved in the October 7th attacks. Some media even reported the IRGC claimed it was a reprisal for the death of Soleimani, although Hamas (and later Iran) denied it.
Just because the Israeli government is filled with Jewish supremacists and fascists, doesn't mean the Iranian's are the good guys. For example, they tortured and executed up to 30,000 political prisoners in 1988, a similar death toll to Israel's in Gaza.
They were getting more radical anyway.