This sounds a lot like the shame and frustration people with ADD feel when untreated. I know several people who suffer with ADD, who are extremely intelligent and talented, and felt the exact same emotions before they were diagnosed. Those emotions were _much_ alleviated once treated, mostly through pharmacological means. Anecdotal but seems a strong pattern to me.
You're not the only one commenting this. I do have to say it's quite re-assuring to know that this is a possibility. For the people you know that have ADD, was medication sufficient? Did they still end up taking therapy for their neurodivergence? I wonder how long it takes before I can be a functional programmer again. I know it'll take a while.
So the therapy is partly focused on emotional management, and partly about skills to do seemingly simple things like cook and put away laundry.
I haven't seen coaching for ADHD software engineers, but I'd be interested in it. (I'd rather take more cooking classes though.)