Heat oil in a large soup pot over medium heat. Sauté onions and garlic until the onions become translucent, about 5 minutes. Add the squash, carrots, ginger, red pepper flakes, water and broth. Cook for 10 minutes and then add the red lentils. Continue to cook for 15-20 minutes, or until carrots are soft and the lentils are cooked through.