The only way to remove a scratch from glass is to sand them out like a show car paint job and then polish it. In most cases, you’d need to replace the glass because any sanding will distort the glass.
If it’s scuffed, then you can polish the glass to remove it.
Is recommend getting glass polishing compound and use an electric polisher. You might not get the scratch completely removed, but it will be far less obvious.
Here’s a YouTube link showing a guy polishing a window.
Good luck, how this helps.