Regularity of McKean-Vlasov stochastic differential equations and applications