The more formal sentence is: "Despite its name, the silkworm is not technically a worm at all; rather, it is the larva, or early form, of the silk moth."
This sentence uses "rather" instead of "it's," which contributes to its formality, and has a more structured composition.