In the dimension argument of /execute in, the nether is called nether instead of the_nether. This is incompatible with Java.
/execute in the_nether run say hi
Observed result Syntax error