I guess its because AE2019 by default use “JavaScript” as the “Expression Engine” change the Expression engine from JavaScript to “ExtendedScript” hope this might fix the issue.
To change the Expression Engine in AE2019 GoTo –>File–>ProjectSettings—>Expression
Vim