Automated sandboxes like Hybrid Analysis often flag any SetWindowsHookEx call with a mouse hook type as “global mouse hook”, whatever its scope. This is a common false positive for Godot games, and for many other apps that use menus.
Googling SetWindowsHookEx shows it isn't a false positive. That does read mouse inputs system wide instead of just in the game.
I'm aware that you relied on AI for a lot of the game development. Based on update frequency, you probably rely on it for code to a high degree. That said, it seems you did use that function, although, hopefully not maliciously.
Googling immediately showed me an article discussing the danger of how applications can secretly watch user actions through the broad permissions granted by SetWindowsHookEx.
I'd like to imagine that you weren't malicious and were just ignorant. If you were just ignorant, in the future, don't copy AI responses to comments directly. Do some simple research first. AI can end up hallucinating. Also, be upfront about if you don't know something and just used AI to quickly produce the code.
I ran the game through hybrid analysis myself to check what it is about https://hybrid-analysis.com/sample/6cafc07977ebff16d47ddaf500463ed7965e940f71bbb...
The flag is simply because of Godot Engine's code https://github.com/godotengine/godot/blob/master/platform/windows/os_windows.cpp
This file links dinput8.dll which has the WH_MOUSE_LL hook. My game has nothing to do with it other than just using godot engine. I don't record any inputs system wide.