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.