Preheat oven to 400°F (200°C).
Toss pumpkin cubes with olive oil on a baking tray.
Roast for about 25–30 minutes until tender.
Heat a saucepan over medium heat.
Heat a little oil in the saucepan, sauté garlic and chili briefly until fragrant, then add roasted pumpkin.
Stir in minced garlic and chopped chili.
Sprinkle cumin and smoked paprika.
Pour in vegetable or chicken broth.
Simmer gently for 10 minutes.
Allow the soup to cool slightly before blending, or use an immersion blender directly in the pot.
Blend mixture until smooth and creamy.
Stir in coconut milk if using.
Season with salt, pepper, and garnish before serving.