Any system file that can be read by "others" can be opened by anyone on the system with any software that can open the file. That is how it is implemented by default. One theoretical way would be to turn read permissions for "others" off, but that may have unexpected side effects and I would not recommend it.
An easy way to achieve what you want would be to install the snap or the flatpak version of Gedit. Such version runs in a sandbox, and has no access to system files in the first place. Alternatively, use firejail
to establish a sandbox for your editor.
With respect to have gedit
"upighted": just be a bit more careful if you decide to work like root. And if, despite that, you suddenly are in a situation where you cannot save changes, then follow the advise given in the comments: save the file under a temporary name and then open your system file properly and paste the modified content.
Developers likely will not want to bother implementing a feature like that. 1) system administration usually is through the terminal for the professionals; 2) as a typical desktop user, you are not editing system files every day. Just take care in doing that the correct way each time, and if you forget to open a file correctly as root, that is easily corrected.