Bottom line is that at least in California, employees theoretically have the right to IP developed in their own time on their own hardware, but in practice, there are numerous caveats, and litigation can be extremely risky.
One of the caveats is that the invention should not overlap with a company's "existing or anticipated line of business", and with the FAANGs being such behemoths, that can cover almost any form of software development.