A properly installed hydrant has stone around the base to allow it to drain from the bottom. Pex, CTS, or even 180 psi black poly will work underground. Sharkbites will work on the pex just fine. If you have rocky soil consider running the line in pvc for protection. Install a ball valve in the house for service later on.