Tested by globally enabling option LUA and disabling LUAJIT, then building (with poudriere, on 12-stable amd64) every port that showed a dependency on lua.
Examined the build logs and package output of key packages and did not see any problems.
Exp-run requested and passed, see #245038