Shigella is a specific enteric pathogen in humans, causing symptoms of bacterial dysentery. The biofilm formation of S. flexneri contributes to the emergence of multidrug resistance and facilitates the establishment of persistent chronic infections. This study investigated the regulatory effects of Lactiplantibacillus plantarum Y12 exopolysaccharide (L-EPS) on gene expression and its spatial hindrance effects in inhibiting the biofilm formation of S. flexneri. The transcriptome analysis revealed a significant impact of L-EPS on the gene expression profile of S. flexneri, with a total of 968 genes showing significant changes (507 up-regulated and 461 down-regulated). The significantly down-regulated KEGG metabolic pathway enriched in phosphotransferase system, Embden-Meyerhf-Parnas, Citrate cycle, Lipopolysaccharide biosynthesis, Cationic antimicrobial peptide resistance, Two-component system. Moreover, L-EPS significantly down-regulated the gene expression levels of fimbriae synthesis (fimF), lipopolysaccharide synthesis (lptE, lptB), anchor protein repeat domain (arpA), virulence factor (lpp, yqgB), antibiotic resistance (marR, cusB, mdtL, mdlB), heavy metal resistance (zraP), and polysaccharide synthesis (mtgA, mdoB, mdoC). The expression of biofilm regulator factor (bssS) and two-component system suppressor factor (mgrB) were significantly up-regulated. The RT-qPCR results indicated that a major component of L-EPS (L-EPS 2-1) exhibited the gene regulatory effect on the S. flexneri biofilm formation. Furthermore, electrophoresis and isothermal microtitration calorimetry demonstrated that the interaction between L-EPS 2-1 and eDNA is electrostatic dependent on the change in environmental pH, disrupting the stable spatial structure of S. flexneri biofilm. In conclusion, L-EPS inhibited the biofilm formation of S. flexneri through gene regulation and spatial obstruction effects.