Crepe Protect is one of the most commonly-used protector sprays, so this would be put on to prevent dirt and stains, instead of post-dirt and stains. Here’s an amazon link: crepe protect
Jason Markk makes really good cleaning products for cleaning dirt and stains off, and even just regular magic erasers work well on soles. I’d definitely recommend some Crepe protect to put on before you wear them. I have some Off White Air Force one’s and my wife spilled a whole cup of coffee on them 2 days ago, and the coffee was able to just come right off. It’s a good investment.