Heat the oven to 220°C (425°F). Trim the eggplants and cut them into 1.5 cm (½ inch) slices or bite-size pieces. Sprinkle with 1 teaspoon salt and rest for 20–30 minutes, then pat dry.
Arrange the eggplant in a single layer on a lightly oiled baking sheet. Brush or toss with 2 tablespoons olive oil. Roast 20 minutes, turn, and roast 15–20 minutes more until deeply golden and tender.
Meanwhile, heat the remaining 2 tablespoons olive oil in a deep skillet over medium-low heat. Add garlic and chili flakes and cook 30–45 seconds without browning the garlic.
Stir in tomato paste and cook 1 minute. Add crushed tomatoes, oregano, remaining salt, and black pepper. Simmer uncovered 12–15 minutes until thickened.
Bring a large pot of salted water to a boil. Cook pasta according to the package directions until al dente. Reserve 240 ml (1 cup) pasta water, then drain.
Stir roasted eggplant into the tomato sauce. Add pasta and toss, adding pasta water a little at a time until glossy and well coated.
Turn off the heat and fold in half the basil. Serve with the remaining basil, ricotta salata, and a drizzle of olive oil.
Nutrition estimate: approximately 520 calories, 17 g protein, 82 g carbohydrates, 15 g fat, and 11 g fiber per serving. Values vary with the pasta, oil, cheese, and portion size.
Recipe notes are general cooking information. Follow package directions and use your judgment for dietary needs or allergies.