Most laptops have a touchpad toggle key. The cursor often reappears immediately. A simple restart can fix many problems.
You may have noticed that the Mouse cursor does not lock to the game window in Windows 11/10 at times. There are various instances of this issue. Sometimes, the mouse fails to lock in specific games ...