Apple makes this very easy to change within the macOS system settings.
There are three primary ways to reverse this behavior: how to use f keys without fn
Note: If you don't see this option, your manufacturer likely requires you to use the BIOS method (see below). 3. Change the BIOS/UEFI Settings (The Permanent Fix) Apple makes this very easy to change within