Preheat the oven to 400 degrees F.
Combine the feta, zucchini, leek, and shallot in a 9x13 or 9x11 baking dish or on a sheet pan. Tuck the garlic cloves into the edges.
Drizzle the feta and vegetables with 2 tablespoons of olive oil. Then sprinkle on the salt, pepper, and red pepper flakes.
Bake the feta and vegetables for 35 minutes.
While the vegetables are roasting, cook the pasta in very salty water, according to package directions. Drain and set aside.
When the feta and vegetables are done, remove them from the oven. Remove the garlic cloves and squeeze the roasted cloves out of their skins. Mince and then add back to the pan. Stir to combine the feta and vegetables.
Combine the pasta and feta mixture. Top with optional toppings and serve.