Preheat oven to 400°F (200°C).
- Toss diced sweet potatoes with olive oil, salt, and pepper. Spread on a baking sheet and roast for 25-30 minutes until tender and caramelized.
- In a large pot, sauté onion in a bit of olive oil over medium heat until translucent, about 5 minutes.
- Add garlic, cumin, smoked paprika, and red pepper flakes; cook for 1 minute until fragrant.
- Add roasted sweet potatoes, white beans, and vegetable broth to the pot.
- Bring to a simmer and cook for 15 minutes to let flavors meld.
- Use an immersion blender to puree part of the soup for a creamy texture, leaving some chunks for texture.
- Stir in crumbled feta cheese, reserving some for garnish.
- Adjust seasoning with salt and pepper.
- Serve hot, garnished with fresh parsley or cilantro and remaining feta.