Problem with System Events

Hello
I’m on Sequoia 15.7.4 and I’m having a problem with “system events” in Script Debugger that doesn’t seem right.
According to the error message, Script Debugger, and all the scripts that use it, don’t have permission to use “System Events,” but only intermittently! Sometimes it works, sometimes it doesn’t.
Are you experiencing this problem?
I’ve obviously reset the permissions in the Mac’s system settings, then restarted, and run Onyx for a cleanup. It hasn’t changed anything. It’s random.
Could this be due to some new, specific OS protection that activates intermittently?