Taxes on Reinvestment

Hi, I pulled money out of mutual funds in 2019 and reinvested a portion of it in NEST 529 accounts for my children's education.  It appears the State of Nebraska taxed me on this money but since it was re-invested into the 529's, should it be tax free?