It might genuinely be worth looking into ADHD. I had never considered it because I assumed you had to be hyperactive and I'm really not - but it turns out there is another variant which is less well known (well, it's getting talked about more now) which manifests more in disorganisation, poor time management, struggle with keeping attention on the thing you're meant to be doing etc.
Basically everything where I was looking around me and going "Why the fuck can't I just do this? I must be a total failure at life" - keeping house clean/tidy, keeping up with daily routines that didn't absolutely have to be done (I wouldn't get my toddler/self dressed on days we weren't going out for example), being late to everything, forgetting stuff, getting places and realising I hadn't brushed my hair or my teeth or put on deodorant.
The house thing came about because I was basically terrified of reading my post because I used to put it off for ages and then by the time I did I'd realise I was meant to return some form or another weeks ago, or I'd open it and then leave it in a pile and not do this perfectly simple thing which really needed to be done, so I'd get another letter hassling me to do it - I developed this huge anxiety over it basically, so I missed a letter from my landlord saying he wanted to come and do an inspection and he turned up on my doorstep and the house was an absolute tip.
That was twofold, because if I'd known he was coming then I would obviously have tidied up, so it was extra bad, but also, I would have struggled to tidy it up sufficiently even if I had had notice, because I was constantly always behind on the housework, had way too much stuff (didn't realise this) and very bad at encouraging DS1 normal tidy up routines that most people do.
Every time I get into a good habit it only takes some small thing to disrupt it and it's totally gone, all the progress I've made and I have to start again at day one of the new habit building (without any of the enthusiasm and excitement that usually accompanies a new habit).
Not everyone has the same presentation - some people can keep their house tidy but struggle with impulse spending, some people can get places on time (often only by being obsessively early), some people figured out the routine thing early on and are totally rigid about them.
If it feels out of control it might be more than a bad habit is what I mean and it might be worth looking into. (Or maybe you need a different job!)