The US supreme court has established that the government can't regulate the content of speech, but the government is in its right to regulate the time, place and manner of speech. [0]
So it is very much a thing in the US and has been enforced plenty of times, for example during Occupy and even during BLM when protests were just declared as "riots" to then crack down on them with the full force of a militarized police arresting thousands of people [1].
[0] https://en.wikipedia.org/wiki/Free_speech_zone
[1] https://apnews.com/article/american-protests-us-news-arrests...