Bring a large pot of salted water to a boil. Add the pasta and cook it according to the package directions until al dente. Drain the pasta into a colander when it's done cooking.
While the pasta cooks, melt the butter in a medium skillet over medium heat.
Add the garlic, red pepper flakes, and flour. Cook everything, stirring frequently, for about a minute, until very fragrant.
Stir in the wine and ¼ teaspoon of salt. Raise the heat and bring the liquid to a boil.
Lower the heat and allow the mixture to simmer for about 5 minutes, until reduced by about half. Carefully taste-test the sauce (it will be hot!) to ensure the alcohol taste has cooked off.
Stir in the pasta and peas. Toss everything a few times and cook it with the sauce for about a minute, until heated throughout.
Remove the skillet from heat and stir in the basil. Season the pasta with additional salt and pepper to taste.
Divide onto plates and serve.