Pat the swordfish steaks dry with paper towels and season both sides with salt and pepper.
Heat olive oil in a 12-inch / 30 cm skillet over medium-high heat. Sear the swordfish 1 to 2 minutes per side until lightly golden but not cooked through. Transfer to a plate.
Lower the heat to medium and add the onion and celery to the same skillet. Cook for 5 to 6 minutes, stirring often, until soft and translucent.
Add the garlic and cook for 30 seconds until fragrant.
Pour in the white wine, scraping up any browned bits from the pan. Simmer for 1 to 2 minutes until the sharp smell of alcohol fades.
Stir in the crushed tomatoes, olives, capers, pine nuts, raisins, and red pepper flakes if using. Simmer for 8 minutes, stirring occasionally, until slightly thickened.
Nestle the swordfish steaks back into the sauce and spoon some sauce over the top. Cover and simmer gently for 6 to 8 minutes, until the fish reaches 145 F / 63 C and flakes easily with a fork.
Remove from the heat, stir in the fresh mint or basil, and taste for salt.
Serve the swordfish steaks with sauce spooned generously over the top.