This seems to be accurate, from what I could find. Most of the articles I found talking about this about this were from German news sites, so I can't be sure if my translations were totally accurate. It looks like the part of the law being used to criminalize the phrase is intended for banning symbols of terrorist/hate groups, according to a comment on this Reddit post. The ban comes from the Federal Ministry of the interior and is part of a larger ban on Hamas, as the EU considers it a terrorist organization. The ban against Hamas and Samidoun, a pro-Palestinian organization, has been in place since before the attack on October 7, but the ban on the specific phrase is more recent and comes after a large number of pro-Palestine rallies across Europe and Germany specifically.