totally understandable. I use to write stories and a lot of ideas down on my laptop many years ago and write on paper. On year on my birthday my laptop decided to murder itself and there was stories I didnt have saved anywhere else and lost them. And that event caused me to have a hard time writing stories or even ideas and it's been many years already.
Another different thing was I used to draw and my brain got to a point of I could imagine something but couldnt make it. And my brain got so stuck on not being able to make it perfectly and how I imagined that I couldnt really draw at all. I got a little bit of my fun back by coloring in coloring books with gel pens as cant make it perfect but still have fun.
So take time do something that gives back the fun without worrying how it is. Maybe doing a small short story about something silly? Dont have to post it but just something to enjoy. Maybe a page long 3 ish paragraphs or less. One I did was more a convo and some short between two people and its a little silly and goofy but makes me happy. Havent posted it anywhere but share it with some friends (years later but) It just gives back some fun.