Alright, I haven't thought about that. Yes, definitely certification is another option.
Safety critical software costs about 100x as much money/time to develop as compared to non safety critical software. "Algorithms" are everywhere, so certification costs would make any software shop as costly as automotive and aerospace. That's just completely misguided. Countries without such restrictions would take over the global software market quickly.