Frogs have very sensitive skin, so if it's safe for frogs I'm sure it's fine for snakes. I've not heard of "pillow moss" but just pulled up this & apparently it can
be kept alive for up to 10 years too, so it's probably pricier than sphagnum.
"Tropical pillow moss is a common ground cover for tropical amphibian and reptile enclosures. ... Tropical pillow moss
is the common name for a variety of mosses in the Dicranum genus. They have a thick, mounded growth habit and are
readily available from terrarium supply stores."