【bug】cursor keep injecting null character to my .py file

I wasted more than 100 requests to fix those corrupted .py files.
why?

image