Writing code absolutely does not fall under free speech. Neither does any product development. Ford isn't allowed to ignore seat belt requirements and claim the government is infringing on the designers' freedom of speech/expression.
It was also tried in a very different time. Given that we can't even allow free speech on digital platforms today, I'm not sure that many courts would allow for free speech claims to fall under the first amendment.