Preheat the oven to 450°F. Place the olive oil in a large ovenproof skillet, preferably nonstick, and turn the heat to high. Add the garlic and squash, then the red pepper flakes, thyme, and salt and pepper to taste. Cook, stirring frequently, until the squash begi