For anyone facing this issue: uninstalled `prettier`, restart VScode, and re-install `prettier` and everything works fine. This is the second time this happened and that same step resolved it.