Begin by seasoning the chicken breasts with salt and pepper on both sides.
In a large skillet, heat the olive oil over medium-high heat. Once hot, place the chicken breasts in the skillet and sear for about 5-6 minutes on each side until golden brown. Remove the chicken from the skillet and set it aside.
In the same skillet, add the chopped onion and cook for 3-4 minutes until softened.
Add the minced garlic and red pepper flakes (if using) and sauté for an additional 1-2 minutes until fragrant.
Pour in the coconut milk, and add the dried oregano and thyme. Stir to combine and bring the mixture to a gentle simmer.
Return the chicken to the skillet, making sure the sauce covers the meat halfway. Reduce the heat to low and cover the skillet. Allow it to simmer for 15-20 minutes, or until the chicken is cooked through (internal temperature of 165°F).
Taste the sauce and adjust seasoning with additional salt and pepper as needed.
Once the chicken is done, remove it from the skillet and let it rest for a few minutes before slicing.
Plate the chicken and drizzle with the creamy sauce from the skillet, garnishing with fresh basil leaves for a burst of flavor and color.