Is it ok to take breaks from your ADHD meds?

Hi, I am prescribed 20mg of adderall per day and have been taking it since 2019. I don't take it consistently tho, I usually ration it out for specific tasks as opposed to taking it for everything.

I developed this routine bc I admittedly use to take more than I was prescribed and started running out of it early, having to deal with the consequences of the withdrawal. Through those periods I discovered that the only time I really needed the medication was while doing work that really required a ton of focus and energy. I didn't need it for general errands, or to socialize or what I do for work (which at this point is pretty mindless).

Sometimes I'll go without the meds for a few weeks, sometimes a full month. The thing is I SERIOUSLY need it for certain tasks but I have discovered over the years that I really don't for others.

To sum it up, is it bad to be taking my medication inconsistently like this? I haven't really experienced symptoms or anything, but I don't know anyone else who takes these sort of meds and I'm not sure if this is a normal thing to do. I told my doctor about it and he didn't seem to mind. Thanks!