The plant does seem to be in some sort of grey foam. I have gravel in the tank, I've previously had a plant thriving in there but it actually grew too big and straggly and I replaced it with this smaller one in the pot.
I'll plant it properly tomorrow then, I already have quite a lot of green algae and I don't want to make it worse.