Fixed issue by uninstalling 2 windows updates.
I bought an Dell G15 5511 Ryzen Edition in Turkey. When I first oppened the computer F6 and F7 keys were working right but after I updated windows they stopped working but other keys are working fine. All drivers are up to date according to support assist.
Dell G15 5511 Ryzen Edition Brightness Button Not Working