Bring a large pot of salted water to a rolling boil. Add the spaghetti and cook until just al dente, about 8-10 minutes. Stir occasionally to prevent sticking, then drain, reserving about 1 cup of pasta water.
While the pasta cooks, heat the olive oil in a deep skillet over medium heat. When the oil shimmers and is warm, add the sliced garlic in an even layer. Gently cook, stirring occasionally, until the garlic turns golden and fragrant—about 2-3 minutes. Keep a close eye to avoid burning.
Once the garlic is golden, turn off the heat. Carefully add the drained pasta into the skillet with the garlic and oil, tossing gently to coat the noodles evenly. If the mixture seems dry, add a splash of the reserved pasta water and toss again.
Season the pasta generously with salt and freshly ground black pepper. Sprinkle in the red pepper flakes if using, and toss to distribute. Taste and adjust the seasoning as needed.
If desired, add lemon zest or a squeeze of lemon juice for brightness. Toss in chopped fresh herbs for a burst of freshness. Give everything one last toss to combine all flavors.
Serve immediately in warm bowls, garnished with extra herbs if you like. Drizzle a little extra olive oil on top for added richness and aroma. Enjoy this simple yet soulful pasta while it's warm and fragrant.