D&D hasn’t really been medieval fantasy for years, if ever. If you want medieval fantasy, go with Pendragon.
But I get your main point. Between the Witchlight carnival and Strixhaven U, more modern fantasy has seeped into D&D. But those are just two products. Ravenloft, Fizban’s and Candlekeep...