You Can check And install latest updates from Settings ( Windows + I ) -> Update & Security -> windows update -> And check for updates.
If the problem started after install windows 10 version 21H1, then make sure you have installed the latest Cumulative Update, As Microsoft mention: “ Addresses an issue with the brightness controls on some laptops after updating to the Windows Update.