If you aren't using Google Docs for its cloud features, I can recommend Manuskript and/or Kate. Manuskript is awesome for writing stories, I highly recommend it. However, it isn't very good for writing code. If you were doing your RenPy code in Google Docs, then Kate (K Advanced Text Editor) might be the correct option for you.
Both options run locally, so no chance of anyone stealing your work for training their AI or any other reason.
Manuskript: https://www.theologeek.ch/manuskript/download/
Kate: https://apps.microsoft.com/store/detail/kate/9NWMW7BB59HW?hl=en-gb&gl=gb&rtc=1