this has been litigated in FL.
Associations and municipalities have had to back down.
BTW canadian flags were not protected.
That would not stand in a federal court as that First Amendment thing would get in the way.