I don’t think it’s accurate to say that everyone can just decompile the code and reuse it. Decompiling and reverse engineering a binary is incredibly hard. Even if you do that there are some aspects of the original code which get optimised out in the compiler and can’t be reproduced from just the binary.
They tested using a green light for the front brake light, not a red one