One must be careful about which branch of the complex logarithm we are using. For instance, with $(-1)^{1/3}$ what this really is is
$$ \exp\left\{\frac13 \log(-1) \right\} = \exp\left\{\frac13 (i\pi) \right\} = \frac12 + i\frac{\sqrt{3}}2. $$
It is important that we agree that $\log(-1) = i\pi$ and not, for instance, $3i\pi$ (which would give $(-1)^{1/3} = -1$).
If we agree that $\operatorname{Im}(\log z) \in (-\pi,\pi]$ then we do indeed have
$$ \exp\left\{\frac{i\pi}6 \right\} = \exp\left\{\frac{i\pi}2 \right\}^{1/3} = i^{1/3}. $$
This takes us up to the line
$$ 2i^{1/3}-i=\sqrt{3} $$
without issue.
The next question is whether
$$ i^{1/3} = i \cdot i^{-2/3}$$
We know already that $i^{1/3} = \exp\left\{\frac{i\pi}6 \right\}$ under our convention. For the right hand side we have
\begin{align}
i \cdot i^{-2/3} &= i \cdot \exp\left\{-\frac{2}3 \log(i) \right\} \\
&= i \cdot \exp\left\{-\frac{2}3 \frac{i\pi}{2} \right\} \\
&= \exp\left\{\frac{i\pi}{2} \right\} \exp\left\{-\frac{i\pi}3 \right\} \\
&= \exp\left\{\frac{i\pi}{2} -\frac{i\pi}3 \right\} \\
&= \exp\left\{\frac{i\pi}{6} \right\}
\end{align}
So indeed
$$ 2i^{1/3}-i = i\left( \frac{2}{i^{2/3}} - 1 \right) = \sqrt3. $$
Now another question is whether or not
$$ i^{2/3} = (i^2)^{1/3} $$
You can (and should) check that these are both equal to
$$ \frac12 + i\frac{\sqrt{3}}2. $$
Which is what we had at the beginning.
Finally, we substitute this for $i^{2/3}$ and we obtain
\begin{align}
i \left( \frac{2}{\frac12 + i\frac{\sqrt{3}}2} - 1 \right) &= i \left( 2\left[ \frac12 - i\frac{\sqrt{3}}2 \right] - 1 \right) \\
&= i \left( - i\sqrt{3} \right) \\
&= \sqrt{3}.
\end{align}
Summary: the only issue was $(-1)^{1/3} = \frac12 + i\frac{\sqrt{3}}2$ not $-1$.