Unfortunately, regular display dimming does not work on OLED displays. Regular dimming is done by reducing the brightness of the display backlight. However, OLED displays don't have a backlight. Therefore, dimming has to be done by reducing the brightness of the scene.
This is a simple GNOME extension which:
git clone https://github.com/fiji-flo/oled_dimmer.git ~/.local/share/gnome-shell/extensions/oled_dimmer@flomerz.gmail.com
gnome-shell-extension-tool -e oled_dimmer@flomerz.gmail.com