Colorado and California age verification bills exempt open source operating systems
(www.gamingonlinux.com)
Wouldn't the argument be that they aren't compelling speech, but preventing the execution of non-compliant code?
Sure, devs could publish software without age verification, but running it would be illegal.