If I’m not mistaken, Valtrex is simply acyclovir, which is a fairly potent anti-viral, not just for herpes.
They also use it for Shingles. That said, the drug can have many dangers to the body.
Valtrex is an acyclovir “prodrug” which has to be broken down in the liver to release acyclovir.