As you mentioned this can be due to Accessibility features work on macOS with MATLAB at this time.
Go to System Preferences > Security & Privacy > Privacy > Accessibility.
This list shows all the applications that you've given permission to use the Accessibility API.
A possible solution is to add MATLAB to this list.
If this does not work, please reach out to MathWorks Technical Support by using the following link
Hope this helps!