I can understand how and why they are able to go after users, who violate ToS, but I do not understand how are why they can go after open source developers, who just publish some source code that seems to be protected speech under the First Amendment [0] in the US jurisdiction.
[0] https://en.wikipedia.org/wiki/Code_as_speech