It’s a gray area. If you look at apps like Snapchat, instagram and TikTok, they all have this concept of filters/lens/effect which are effectively <8mb bundles running JavaScript / lua scripts for visual effects and whatnot (see lens studio, meta spark and effect house).
The key seemed to be to not use any JIT compilers and make sure it does not change the code of the app itself but mainly just act as a static runtime / engine for the effect.
One app effectively violating that policy is WeChat with their mini programs, but they get away with it due to the fact that iOS without WeChat would be doa in China.