Grease a 13 x 9-inch baking pan, or a casserole dish.
Heat olive oil in a large Dutch oven over medium heat.
Add in the garlic, onion and chili flakes; saute for 1-2 minutes.
Add in the chopped tomatoes, red wine, 2-3 tablespoons grated Parmesan cheese (if using) and 1/4 cup parsley; mix and reduce heat, simmer for about 20 minutes.
Season with salt and pepper to taste.
Add in the shrimp; cook for 10 minutes.
Transfer the mixture into a prepared baking dish; sprinkle with 1/4 cup Parmesan cheese (the added Parmesan cheese for the topping is optional, you may just use the feta for the topping) and then with the 1-1/2 cups (or to taste) of feta cheese.
Bake for about 20 minutes.
Remove from oven, sprinkle with remaining parsley, 2 Tbsp lemon juice and black pepper.