I work in a FAANG as a SWE. I'm not the on selecting candidates, but I do interview a lot of them. I'm pretty sure I've never seen a 50+ year old candidate. 99% of the candidates have less than 10 year experience, and are in their 20s or 30s.
So yes, ageism is real. I suppose the company gets away with it by saying they look for candidates with 3-10 years of experience?
At that stage, I think I would pass Leetcode with 2-3 months of practice, and I don't mind putting the work if this is what it takes. I'm just not sure I'd be given the chance.