Our parser grammar only allows arithmetic expression without $(()) in substring expansion. Will implement it when have to deal with it.
This was fixed with the set I just pushed.