Preheat your oven to 400℉ .
Cut about 1-½" off the top of the head of the garlic to expose the cloves. Place in aluminum foil and drizzle with olive oil. Bake for 45 minutes.
When the garlic is done, increase the oven to 425℉
In a medium-sized bowl, squeeze the roasted garlic out of the head and mash it a bit with the spoon. Add in the remaining ingredients – ricotta cheese, parmesan cheese, grated lemon zest, grated shallot, red pepper flakes, chopped rosemary, and black pepper. Stir to combine.
Spoon the roasted garlic ricotta mixture into your oven-safe baking dish. Bake at for 20-25 minutes until slightly bubbly and golden on the edges.
Serve with crusty bread and crackers.