Heat a large pot or Dutch oven to medium-low heat.
Add 2 tablespoons of olive oil, diced onion, red bell pepper and carrot plus 1 teaspoon of salt. Sauté, stirring often, until soft and translucent, 5–10 minutes.
Add ras el hanout or thyme and pepper—and cook, stirring, until fragrant, about 1 minute.
Add squash and cook, stirring occasionally, until the squash begins to soften on the outside, 7–10 minutes. (If you’re using winter squash, you’ll have to cook a little longer, 12–15 minutes.)
Add beans, diced tomatoes, zucchini, green beans and broth/stock. (For a thinner soup, add up to 2 cups of water.) Bring to a boil.
Lower heat and simmer, uncovered, until green beans are tender but still have a little snap, about 20 minutes.
Stir in the chard or kale and remove from heat. Add salt and pepper to taste. (Keep in mind that you will get more salt and pepper from the pistou, so avoid adding too much to the soup.)