My experience has been the opposite. I had to turn down a return offer from an internship and then I had to resign from my job, both for the same reason: I had a chronic illness and they wanted strict attendance at specific times in the morning, no flexibility. My last job had daily standups and 1-2hr planning sessions every other day.
Every job I've found with flexible work schedules has been at startups looking for rockstar devs with 10 years of experience.