Obviously ingredient labels will not expressly tell you “mold”. With the exception of things like yeast, aspergillus oryzae or other such formal starter cultures that are intentionally used to produce certain foods.
The main things I look out for are anything fermented (sauerkraut, kimchi, fermented bean pastes, kombucha, chocolate) including vinegar. Speaking of vinegar, most commercial vinegar is fine in small amounts as they are pasteurized. Heat removes most of the problems for me. I avoid raw or unpasteurized vinegars found usually in the fancier, healthy, small batch brands. I avoid things like sauerkraut and fermented bean paste even when cooked, as these have large amounts of mold and seem to cause mild issues.
Things would be much more complicated if one does not tolerated small amounts of mold even when cooked. This would mean any tomato products, mushrooms, even berry preserves would be out, among others. Luckily I am okay with these.
Also, corn and peanut are notorious for mold contamination. The more processed they are, the more we cannot see their whole form, the more likely to be problematic. As for us, we didn’t detect any problem with fresh corn, even frozen or canned corn, where we can see the whole kernels. But there were some incidents that made us suspicious of corn flour or cornmeal products such as cereals or chips.