While scripting a black box appears

Whenever I am typing something in a script, a black box overrides the regular line point cursor. I am wondering how to get rid of this since it behaves unusually and just overall ruins my experience. If you have any solutions, I’d be happy to hear them!

You pressed insert by accident, press it again to undo


Ah, I knew I did something wrong. Anyways thanks for the help. It is really appreciated!