1
On a Lenovo laptop, usually you just need to press Fn + Esc to toggle off the Function Lock on your keyboard.
2
If that does not resolve the problem, boot your laptop into BIOS.
In BIOS search for a setting to toggle between Function Keys and Media/Action Keys and apply that, then save those settings and restart your laptop.
3
If that does not resolve the problem.
Open the pre-installed Lenovo Vantage app.
Go to Device - Input & Accessories.
Under the Keyboard top row function section, are you able to disable the function lock from there.