It occurred to me that it would be beneficial to use flashcards to trigger the memory. It sounds unconventional/unorthotodox use of flashcards but why not. Take screenshots of your codebase/functions/commits, capture progress on your workbench, take little notes of your progress/procedures/learnings/recipes and resurface them. I'm sometimes annoyed to rediscover a useful tool I made time ago.
I yet haven't done this systematically, much less using a SRS, but it is sure worth a try. Difficult to predict when this is worth the effort. But it's a good habit to keep "lab notes" anyway.
When nothing works, go for delusions (only if you're stable enough to not have them break apart the nature of your reality too much).
Also, go travel; be it on the other side of the city in a new coffee shop, in a new town for their town's day or sth, or in a new state/country/continent, travel somehow manages to shuffle the internals in one's brain enough to reboot to a different baseline; good trick for when current internal state is too meah.