In a medium bowl, whisk together the sweet chili sauce, soy sauce, minced garlic, and grated ginger.
Add the shrimp and toss until evenly coated. Cover and refrigerate for 15–30 minutes.
While the shrimp marinates, cut the pineapple into bite-sized chunks if using fresh pineapple.
Heat the olive oil in a large skillet over medium-high heat.
Once the oil is hot, add the marinated shrimp in a single layer. Cook for 2–3 minutes per side, or until the shrimp turn pink and opaque.
Stir in the pineapple chunks and cook for another 2–3 minutes, allowing the pineapple to warm and lightly caramelize.
Add the lime juice and red pepper flakes, if using, and toss everything together.
Remove from the heat and garnish with chopped cilantro and sesame seeds.
Serve this Sweet Chili Pineapple Shrimp Recipe immediately over steamed rice, jasmine rice, coconut rice, noodles, or quinoa.