If you have installed version 25H2 of Windows 11, this is caused by a widely reported problem in that update where USB peripherals like a mouse and keyboard do not work in the Recovery Environment, Microsoft have indicated they are aware of the problem and they are working to provide a fix for this problem.
Are you able to get into Windows normally, or are you stuck in the Recovery Environment?