Dynamic of a Stochastic SIR Model Under Regime Switching