Bring a large pot containing about 7 quarts water and 2 heaping tablespoons kosher salt to to a boil.
Add the pasta and cook according to package instructions until al dente.
Reserve 1-½ cups pasta cooking water; drain pasta.
Wipe out the pot and heat 2 tablespoons olive oil over medium.
Add the shallots and cook until they begin to soften; 2 to 3 minutes.
Add the tomatoes and cook, stirring occasionally, until they start to burst; 5 to 7 minutes.
Add about ⅓ cup reserved pasta water and press the tomatoes gently with the back of a spatula or wooden spoon to get them nice and jammy.
Stir in the garlic and red-pepper flakes, allowing the sauce to simmer; 1 to 2 minutes.
Season with salt and pepper; set aside.
Season the scallops well on both sides with salt and pepper.
In a 12-inch skillet, heat the remaining 2 tablespoons olive oil over high.
When the oil shimmers, add the scallops, working in batches to avoid crowding the pan, and cook until golden brown and crisp, flipping once; 1 to 2 minutes per side.
Add the pasta, 1-½ cups herbs and ¼ cup reserved pasta water to the pot with the tomatoes and toss to coat, adding additional pasta water if needed.
Divide the pasta among shallow bowls and top with scallops.
Garnish with additional herbs and a drizzle of olive oil, if desired.