8. In a second attempt to bypass the problem I installed yet an earlier version. This time it was 2022b. And now it works but only until I run the first script. After running a script it starts to complain on anything I write similar to 3). So still interested in solving this problem.
[EDIT: I briefly thought this solved the problem so this post was different for the first 15 minutes it was up.]