shellcheck(1) is warning that the single quotes prevent the expression from being expanded. However, this is the desired behavior because this expression is meant to be interpreted by vim(1), not bash(1).