The bug
The command syntax help does not recognize invalid dimensions. This issue was introduced in 1.16.
How to reproduce
Type the following command:
/execute in invalid run say hi
→ invalid doesn't turn red. Before 1.16, it turns red.
Similar issue:
MC-124984