Indentation in Python

Hey, I am using code mirror for python, but on pressing enter after a backspace (to get out of a particular block). An indentation tab is added again, however, it should have only been an ‘enter’.
How do I get rid of it?

I don’t think CodeMirror 5 has a way around this. (@codemirror/lang-python for version 6 does handle it, it seems.)

@marijn Is a demo for v6 available somewhere?

See here.

Thank you so much : )