How to set system wide socks5 proxy in Gnome settings?

Firefox likely ignores system proxy settings due to a bug.
This is probably the same issue first detected on Fedora 37 here:
Russian — Firefox игнорирует настройки системного прокси