Yeah in general this strikes me as a learning lesson. If you're at all career-wise (and/or have signed a contract recently), this area is usually anywhere from an ethically gray area, to a contractural third rail.
A CEO flexing on an early-career SWE is the height of nonsense, but this sounds like an early-career mistake to make on the engineer's end.
For the SWE it's a project, for the CEO it's existential. Of course this could go south.