That sudden lack of motivation or drop in performance on tasks that we previously excelled at is also classic ADHD.
Anxiety is often a comorbidity, stemming from a feeling of inconsistent failure and lack of control. Though my understanding is that anxiety may be more present in women sufferers of ADHD where the disease manifests differently than in men.
All of this to say that you may feel like a DSM definition of ADHD doesn't map onto your experience, but that may be because you're an adult who has a lifetime of adaptation.
Anecdotally I've seen this scenario play out in my own family.
I have been on the anxiety treatment path before and what you describe rings true with me.
It's actually misnamed and many professionals are trying to shift the name to "Executive Function Disorder".
The dysregulation swings both ways: can't focus on uninteresting things, but hyperfocus on interesting things.
You might want to do some more research, because the resulting anxiety that you also mentioned is almost always co-morbid with ADHD.
--a fellow diagnosed-as-an-adult ADHD guy who didn't know that was my problem until I was in my mid 30s.
P.S. another common sign: "Johnny is a delight to have in class, but he's not working to his potential." or "Johnny gets all of his work done quickly and it's stellar work, but then he is a frequent distraction to those around him." or "Class clown who is not working to potential."
Yep, a variant on bright/"gifted" + ADHD presentation. ADHD as fuck, but smart enough that they get by kinda OK-ish regardless, and maybe even excel... until, perhaps, one day, that's not enough anymore and everything falls apart. The intelligence masks the ADHD enough that it might go undiagnosed and untreated for a long time.
Fortunately, spotting these kinds of "twice exceptional" situations is a big focus in modern gifted education, so that's getting a bit better.
The way I describe it in a few words: focus and motivation are outside my control. I have no say in how they operate and what activates them.
The clinical descriptions of these sorts of things are evolving; first it was ADD, then it was ADHD, now it's often talked about as three things, ADHD-H (hyperactive), ADHD-I (impulsive), and ADHD-C (combined).
Furthermore, sometimes folks have developed coping mechanisms, you may have a handle on behaviors in some context, but if circumstances change, you may not feel that way anymore.
Then again, you also just plain may not have it, it's true.
I think often this is due to the fact that doing a good job isn't noticed or rewarded.
Sometimes the intrinsic motivation of learning a new skill, tool, or environment, is reward enough. If you're new on a project or job, you might think that being a high performer will garner respect, praise, and promotions.
However... if you consistently perform well and management can't (or won't) recognize this in some tangible way, that's a surefire way to kill motivation.
For me, I've joined new teams and crushed it for a few weeks where it was at least expected performance, but then I quickly fall off a cliff for seemingly no reason. Anxiety compounds this, and I can identify why I've sometimes been slow to crawl out, but the initial fall is always difficult to diagnose.