Yea that's why good commit logs are actually helpful for your own career lol. I always forget what I did last week so team retros I usually just pull out all my commits and summarize into a paragraph for others.
I too can't remember jack and get brain fog during work, yet it's odd because I can remember very specific things in some experiences before I started working. For example I can recall some contents from my analysis class despite not using any of it for basically all of my career. But I can't recall what my boss said yesterday if I don't write it down. I guess it comes to a personal idea of "importance" too, I can generally remember things I'm interested in. I can remember which port number my home lab server and router is plugged into my switch but I can't remember my work intranet URL and rely on bookmarks.