This is a wild read for someone that has spent the bulk of their career as a "mercenary" for small to mid-size largely non-tech companies (e.g., their product wasn't purely technical) and no matter what the official company Koolaid line was, you always know you are one "restructuring" away from being made redundant, the company doesn't give a crap about you or your contributions, and you very much are a "cog." I've been blessed to work for a company or two where this was less the case than others, and more or less bought into their own culture hype, but it's still fundamentally this way, the relationship between employer and employee. It's sad and interesting to me to see what sounds like an experienced developer for such a large company coming to this realization all at once. Given what I've read and learned about Google layoffs since ~2022 this seems pretty bog standard large company stuff.
Everyone is replaceable/expendable, even if you actually aren't, it doesn't matter. It isn't worth investing so much emotional energy and your personal identity into a company unless you are a major shareholder.