Preheat oven to 375°
Spread the coconut flakes on a baking tray lined with parchment paper. Bake in a preheated oven for about 5 minutes until golden. Stir occasionally to prevent browning.
Once done baking, remove from oven and set aside.
Combine the eggs to a mixing bowl and whisk together. Set aside.
In a medium saucepan over low heat, whisk the heavy whipping cream, coconut flour, vanilla extract, salt and sweetener. Continue whisking until simmering and the sauce has slightly thickened (do not boil). About 2 minutes.
Temper the whisked eggs with the heated sauce and then slowly pour the eggs into the sauce pan, continuously whisking to combine.
Finally whisk in 1/4 tsp of xanthan gum. Once the custard has thickened (about 2-3 minutes) remove from heat.
Stir in half a cup of the toasted coconut flakes to the custard.
Pour the custard into the pie shell and chill until firm, about 4 hours.