Bring a large pot of salted water to a boil. Add the green beans and cook 3 minutes until bright green. Drain and plunge into ice water to stop cooking. Pat dry.
Sauté the aromatics.
In a large skillet, warm 1 Tbsp olive oil over medium heat. Add the sliced onion and cook until golden and soft, about 7 minutes. Stir in garlic and cook 1 minute more.
Add the cherry tomatoes and sun-dried tomatoes to the skillet. Cook until they soften and start to release their juices, about 3–4 minutes. Stir in the blanched green beans, lemon zest, oregano, olives, feta, and a sprinkle of salt and pepper. Toss to coat.
Transfer to baking dish.
Pour everything into a lightly oiled 2-quart baking dish. Sprinkle the toasted nuts evenly over the top.
Make the crunchy topping.
In a small bowl, mix breadcrumbs, cheese, parsley, olive oil, and (if using) red pepper flakes. Scatter this mixture evenly over the beans.
Bake uncovered at 400 °F (200 °C) for 15–20 minutes, until golden and crisp on top.
Drizzle lightly with olive oil before serving. The dish should be fragrant, nutty, and just a little tangy — a sunshine-filled cousin to the classic casserole.