I updated to the PyCharm Version 2024.2.4 and the error disappeared. Now you can set breakpoints in your Dash/Plotly app.
2024.2.4