Here is the item again:
Piling into the car, Jorge and his friends drove to Little Anthony's
Pizzeria (A)
and gorged on house
specialties, (B)such
as, (C)
garlic knots, meatballs, and sausage pizza.
You correctly realized that the comma after such as misconnected an afterthought phrase to the main clause in front.
To fix this fragment, you chose to do this:
Piling into the car, Jorge and his friends drove to Little Anthony's Pizzeria
and gorged on house specialties, such as garlic
knots, meatballs, and sausage pizza.
You have correctly employed Punctuation Rule 7:
Main clause + , + afterthought transition + Ø + details.
Groove one!