Reporting traffic cameras/stops is illegal in many countries but not the US. That however does not mean that reporting police activity is automatically always legal there. Similar to how taking along a hitchhiker is legal but driving a getaway car for a crime is not.
We don’t get this in NZ. Waze has removed this feature after threats. I don’t like cops either, but it is super fair and logical to me.