I realised today that Google has a separate committee [1] from which the employee needs permission if she wants to continue working on the personal project and also retain the copyright. Otherwise, Google owns any IP created while you're at the company.
How liberal is your company regarding personal projects?
[1]: https://opensource.google.com/docs/iarc/
When I left a previous employer, their legal department sent me a certified letter sternly stating that any "thought" or "idea" I had during my employment was their property.