Lactase persistence is somewhat focused in Europe, being the norm in the more northern countries.
https://worldpopulationreview.com/country-rankings/lactose-i...
And yes is seems like the gut microbiome actually has a role in moderating lactose intolerance.
https://biology.indiana.edu/news-events/news/2019/foster-lac...