Heat the oven: Preheat to 400°F (200°C). Line a baking sheet for easy transfer.
Prep the packets: Cut four large sheets of heavy-duty foil or parchment (about 12x16 inches).
Lightly oil the center of each to prevent sticking.
Layer the base: Place a small handful of halved cherry tomatoes in the center of each sheet. Drizzle with a touch of olive oil, and season with a pinch of salt and pepper.
Add the salmon: Set one salmon fillet on top of the tomatoes, skin-side down if using skin-on.
Season simply: Sprinkle each fillet with salt and pepper. Add minced garlic if you like a bigger garlic hit.
Spread the pesto: Spoon 1–2 tablespoons of basil pesto over each fillet, spreading it to coat the top evenly.
Add lemon and heat: Top each fillet with 1–2 thin lemon slices.
Sprinkle a pinch of red pepper flakes if you want gentle spice.
Seal the packets: Fold the long sides of the foil over the salmon, then fold the ends to seal, leaving a little room inside for steam. If using parchment, fold and crimp the edges tightly.
Bake: Set the packets on the baking sheet and bake for 12–15 minutes, depending on thickness. Thicker fillets may need up to 18 minutes.
The salmon should flake easily with a fork.
Rest and serve: Carefully open the packets (watch the steam). Garnish with fresh basil and extra lemon wedges. Serve with rice, couscous, roasted potatoes, or a simple green salad.