I think for now you should just re-pot it and plant it deeper. Bury it all the way up to where the purple stops on the stem. You can see in the picture where it is already trying to grow roots from that part. Then when you plant it again. Bury it even deeper again. The stem will grow roots where it is buried. Then after you transplant it, keep it nice and close to the light source. I don't know where you are located, but I'm guessing it's not warm enough yet to put it in the ground outside.
USDA Zone 7a, Sunset Zone 32.
Failure is only a fact when you give up.