I have that issue here on some routes I ride. Particularly the 11 mile long MUP. It's especially bad when going through the sections where it's like rapid fire sequences of extremely bright and extremely shadowed. One day I was crossing over the sunny crest of a small rise and in the dark shadowed dip in the trail, a guy had decided to do pushups crosswise to the trail and right in the middle!
Thankfully, I was able to see him soon enough. I use lightly tinted glasses for such days in those conditions. But with my eyes getting older, they don't seem to adjust from light to dark as fast as they once did. So I see that as a issue more so than what type of sunglasses I should wear.