sudo osalang -L
ascr appl cgxervdh AppleScript (AppleScript.)
jscr appl cgxe-v-h JavaScript (JavaScript)
scpt appl cgxervdh Generic Scripting System (Transparently supports all installed OSA scripting systems.)
Googling this problem returned limited suggestions. The most common seems to be a reinstall of the OS update. I’ll resort to this if I cannot find any alternatives.
Thanks for the reply @jec0047! This is changed behavior from before the upgrade, so, I’m not keen to change anything at this stage. A lot of Alfred’s system functionality is not working now thanks to this problem for example.