EDIT: Here is what I believe to be a source of many such claims, a 2014 study suggesting that artificial sweeteners can alter gut flora in mice to lead them to being glucose intolerant: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4615743/
I'd be interested if there's anything more recent or conclusive about this - plenty of sensationalistic articles seem to be out there either extrapolating from or challenging this study, but I'm not able to deduce anything further.
And that's it; we don't know anything more detailed than that.
But intuitively eating unprocessed foods that are not made with artificial or chemical anything (including artificial sweeteners) is probably a good start.
Fasting is probably another good way to reset your gut.
https://www.sciencedirect.com/science/article/pii/S096098221...
Here's a random study about vaginal microbiota:
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4178329/
There's also a probiotic called visbiome (formerly* known as vsl #3, which is the name the research literature uses) that has shown a lot of effectiveness for IBS and similar issues. I don't feel like digging up the studies for that unfortunately but there's quite a bit of evidence.
* vsl #3 is still marketed but is supposedly a different manufacturing process now. thus visbiome is now the "real" one
https://www.nature.com/articles/nature14232
http://www.israelscienceinfo.com/en/medecine/weizmann-israel...
Edit: poor wording above. I meant to ask whether the artificial sweeteners could take the place of nutrition for the gut bacteria but not actually provide enough nutrition.
Coke Zero doesn't do that, but I still try to stay away from diet sodas.