Season the cod fillets with salt, pepper, and red pepper flakes.
In a pan, over medium-high heat, add the olive oil and the seasoned cod filets. Cook for 2 to 3 minutes per side, until lightly browned. Remove from heat and allow to rest on a plate.
Drop the temperature to medium and add the red onions and garlic. Sauté for 2 to 3 minutes, until the onions begin to lightly brown.
Add the white wine, fresh herbs, tomatoes, artichoke hearts, and olives. Stir until ingredients are well combined.
Return the cod filets to the pan and simmer for 5 to 7 minutes, until the fish is cooked throughout, and the sauce begins to merry together.
Finish with freshly squeezed lemon juice, fresh herbs, and salt and pepper - to taste.