Sure, FOSS is a thing... but plenty of software ain't FOSS.
Re: regulation... Plenty of software is regulated by law. Ever heard of PCI compliance? Banking? Insurance? Tax prep? Medicine? Military? Flight avionics? ... All of those industries are heavily regulated by law, and some ofbthose regulations govern their software, too.