I’ve represented my country and competed abroad. After burning out racing, I weirdly couldn’t enjoy it as a hobby anymore.
Perfectionism was definitely a factor. The main thing for me was the lack of learning new stuff.
When you’re a beginner, the initial steep learning curve can be really fun. Then it flattens out once you’re an expert.
Maybe you could build a side project in a new language - or even step away from coding for a while and learn something completely different.