How to fix a bug with UE5.1 which causes the mouse cursor to become hidden

I deleted Saved, Intermediate, Binaries files and generated visual studio project files and it worked