It's really more about rigor and the actual practice of engineering (
e.g., tracking requirements and verification of implementation against these requirements, verifying systems & subsystems meet correctness invariants, etc.) moreso than regulation. Most software development is craftsmanship, including the Linux kernel. It's certainly possible to practice software development as engineering, but it's not common.
Source: aerospace engineer with a flight sciences background, and also software reviewer for flight systems.