Let $L$ be a finite-dimensional nilpotent subalgebra of the Lie algebra $W_n$ of all vector fields in $n$ variables (I am interested both in polynomial and formal vector fields). Does there exist a bound in terms of $n$ on the index of nilpotency of $L$?

For $n=1$ the answer is trivially "yes": every finite dimensional subalgebra is of dimension $\le 3$, concentrated in degrees $-1$, $0$, $1$. For $n>1$, I don't know.

**Motivation**: the question looks for me interesting in its own right, but also arises in control theory. There, one has a criterion for nonlinear systems to be so-called finitely discretizable (roughly, to admit a polynomial solution of some sort) in terms of nilpotency of the Lie algebra generated by the corresponding vector fields. So, when one applies this criterion on practice, one wants to be sure that it is enough to check the vanishing of the iterated Lie brackets up to a given degree. For the control theory application, the base field is $\mathbb R$, but the question does not seem to be dependent on the base field (as long as it is of characteristic zero at least).