A Lenovo has the licence built into the bios. You will need to clean install windows deleting the existing data. The school should have done this for you really. (it it did the job correctly)
The installation software for Windows 11 is here Download Windows 11 - Microsoft read the instructions on how to create the bootable USB flash drive.
You will need to boot from the USB once it is created. Select Language > Install now > Customised install. At customised install delete each partition (one at a time) when there is only unallocated space select Next and follow the onscreen instructions.
The licence will be detected during the install and active once installation is complete.
You may need to go to the Lenovo support website to get all the correct drivers for the device.