What are the challenges in regulating OTT platforms for content without affecting creative freedom?

Given the ban on certain OTT apps for obscene content, I am curious about how the government can balance regulation with the need to protect freedom of expression and creativity.