Heat olive oil in a large pot over medium heat. Add carrots, red onion, garlic, and celery. Cook until they start to soften.
Stir in green beans, potatoes, pumpkin, leek, and cauliflower. Cook for about 5 minutes, stirring occasionally.
Pour in the crushed tomatoes and enough water to cover the vegetables. Add borlotti beans, rosemary, bay leaves, salt, and pepper. Bring to a boil, then reduce heat and simmer for about 30 minutes.
Add the frozen peas and greens in the last 10 minutes of cooking. If using pasta, add it to the pot as well. Cook until the greens are wilted and the pasta is cooked through.
Remove bay leaves and rosemary sprig. Adjust seasoning with salt and pepper. Stir in the fresh chopped parsley. Serve hot with a sprinkle of grated parmesan (if desired), a drizzle of olive oil, and some crustry bread.