In recent times, surface plasmon resonance (SPR) sensors have gained remarkable attention due to their high sensitivity and real-time monitoring capabilities. This paper represents a novel configuration of an SPR biosensor, structured as BK \(_7\) /TiO \(_2\) /Ag/TiO \(_2\) /WSe \(_2\) for detecting the dengue virus. The novelty of this configuration is that the silver (Ag) layer is sandwiched between two layers of TiO \(_2\) and capped with WSe \(_2\) to enhance the sensor’s performance. We applied the transfer matrix method and the finite element method to model the sensor performance. Both results are almost identical to each other, which confirms the robustness of the design. The performance parameters of this sensor, such as sensitivity, FWHM, DA, QF, and SNR, have been computed and obtained as 288.11 deg./RIU, 2.66 deg, 0.37 deg \(^{-1}\) , 108.27 RIU \(^{-1}\) , and 3.79, respectively. This study also discusses the effects of substituting TiO \(_2\) and WSe \(_2\) layers, as well as optimizing the Ag layer. The results indicate that the proposed SPR sensor can be a promising tool for effectively investigating dengue viruses.