Hawthorne never calls the Puritan colony a "utopia" sincerely.
In The Scarlet Letter, the Massachusetts Bay Colony is depicted as:
If Hawthorne uses "utopia," it's ironic — contrasting the colony's self-image as a "city upon a hill" (Winthrop's sermon) with its reality as a place of secrecy, judgment, and suppressed humanity.
The forest, not the settlement, represents freedom — making the colony a dystopia in practice.