In order to improve the laws and regulations of the financial system, in the construction of laws and regulations, the traditional financial risk Early Warning (EW) model is optimized. The financial prevention and control measures with legal protection are implemented to warn the financial risks, which plays an important role in the construction of the rule of law in the Financial Market (FM) and the establishment of financial risk prevention and control laws and regulations. This paper combines the deep learning model and the Markov regime Switching Vector Auto Regression (MS-VAR) model and constructs a regional financial risk EW model from the following aspects: macroeconomic operation EW indicators, regional economic risk EW indicators, regional financial institution risk EW indicators. The model is empirically researched and analyzed. The results show that the fluctuation trend of the macroeconomic pressure index in the time series is relatively large, and the overall fluctuation of the regional economic pressure index is small, and fluctuates around 0 in most periods. After the financial crisis, local governments stepped up their supervision of non-performing corporate and household loans. From 2011 to 2018, the non-performing loan ratio began to decline, and the overall fluctuation of the regional financial comprehensive stress index was small, fluctuating around 0. Due to the lack of legal regulation, from the perspective of the regional economy, the risk level is more likely to change from low risk to moderate risk, while the risk status is less likely to change from high risk to moderate risk. From the perspective of regional financial institutions, the probabilities of maintaining low risk and moderate risk are 0.98 and 0.97, respectively, which is stronger than maintaining the stability of high risk. From the perspective of the state transition of the regional financial risk composite index, the probability of maintaining low risk and high risk is 0.97 and 0.93, which is higher than maintaining the stability of medium risk. The Deep Learning (DL) regional financial risk EW MS-VAR model has strong risk prediction ability. The model can better analyze the conversion probability of regional financial risk EW index and has better risk EW ability. This paper enhances the role of legal systems in financial risk prevention and control. The regional financial risk EW model incorporating financial legal indicators can better describe the regional financial risk level, and the EW results are basically consistent with the actual situation. In order to effectively prevent financial risks and ensure the safety of the financial system, it is recommended that the government improve local debt management, improve financial regulations and systems, and improve the legislative level of financial legal supervision.