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" and has a more structured phrasing, which contributes to a more formal tone.