Recent financial disasters have emphasized the need to accurately predict extreme financial losses and their consequences for the institutions belonging to a given financial market. The ability of econometric models to predict extreme events strongly relies on their flexibility to account for the highly nonlinear and asymmetric dependence patterns observed in financial time series. In this paper, we develop a new class of flexible copula models where the dependence parameters evolve according to a Markov switching generalized autoregressive score (GAS) dynamics. Maximum likelihood estimation is performed using a two-step procedure where the second step relies on the expectation-maximization algorithm. The proposed switching GAS copula models are then used to estimate the conditional value at risk and the conditional expected shortfall, measuring the impact on an institution of extreme events affecting another institution or the market. The empirical investigation, conducted on a panel of European regional portfolios, reveals that the proposed model is able to explain and predict the evolution of the systemic risk contributions over the period 1999-2015.