As someone who received medication for childhood ADHD, the highly managed classroom environment was never an issue, it was getting the homework done at home when I had to be self-motivated.
Work-from-home during the pandemic has yielded similar issues with motivating myself to do work for my job (but to a lesser degree, as I've learned skills to cope over the years).