[frontend] Add regex for test -v a[i]