For tomato sauce, preheat oven to 190C. Combine tomatoes, onion, garlic, capsicum, basil and olive oil in a baking dish and season to taste with sea salt and freshly ground black pepper. Bake for 40 minutes or until tomato and capsicum are coloured and soft. Transfer tomato mixture to a heavy-based saucepan, add canned tomatoes, stock, vinegar and sugar and bring to the boil over medium heat. Reduce heat and simmer gently for 40 minutes or until mixture has thickened. Cool slightly, place in a food processor and blend until smooth.
Trim ends from eggplant then slice lengthwise into 5mm-thick slices. Brush eggplant lightly with ½ cup olive oil. Heat a chargrill pan over a high heat and cook eggplant, in batches, for 2 minutes each side or until golden and cooked through. Drain on absorbent paper and cool.
Preheat oven to 180C. Scatter ricotta over a baking paper-lined oven tray and drizzle with 1 tbsp olive oil. Scatter with 1 tbsp each of basil and parsley and bake for 20 minutes or until just starting to colour. Cool.
Cook fregola in boiling salted water according to packet directions or until tender. Drain and drizzle with 1 tbsp olive oil, toss to combine and season to taste, cool. Place in a bowl, add remaining basil and parsley, garlic, egg, parmesan, ⅓ cup roasted tomato sauce, crumble over ricotta and stir gently to combine. Season to taste.
Line six 1 cup-capacity moulds with plastic wrap, then line with eggplant slices overlapping slightly. Spoon fregola mixture into prepared moulds and pack down firmly, fold eggplant over filling, then fold over plastic wrap. Refrigerate overnight.
Preheat oven to 160C. To serve, unmould sformato, remove the plastic wrap and transfer to a baking paper-lined oven tray, drizzle with remaining olive oil and bake for 20 minutes or until heated through. Heat remaining tomato sauce over medium heat for 5 minutes or until just heated through, then spoon onto plates, top with sformato, scatter with basil leaves and drizzle with extra olive oil, season to taste.
