Mix dry ingredients: In a stand mixer fitted with a paddle attachment, combine the bread flour, yeast, xanthan gum, baking powder, and salt.
Make psyllium gel: Combine psyllium husk and warm water in a small bowl. Let sit for 5 minutes until thickened.
Warm milk: Heat milk and sugar in a saucepan to 115–120°F. Pour into the dry ingredients.
Add wet ingredients: Add the psyllium gel, egg, softened butter, and apple cider vinegar. Mix until combined.
Beat dough: Increase mixer speed to medium-high and beat for 5 minutes until smooth and cohesive.
Prepare filling: Mix brown sugar and cinnamon in a small bowl. Toss in the raisins. Reserve half of the filling for layering.
Shape the dough: Gently mix half of the raisin filling into the dough. Sprinkle flour onto your work surface and scoop out the dough. Gently knead a few times, then flatten into a 6x6-inch square. Sprinkle the remaining filling over the dough. Roll and fold the dough into a rectangular loaf, creating layers of cinnamon and raisins.
Transfer to pan: Place the dough into a greased loaf pan. Smooth the top with lightly oiled hands or a damp spatula.
Let rise: Cover with plastic wrap or a damp towel. Let rise in a warm place for 30–60 minutes, or until noticeably increased in size. Avoid overproofing.
Preheat oven: Place a cast-iron skillet on the bottom rack and preheat the oven to 400°F.
Egg wash and bake: Whisk together the egg and water. Brush over the loaf. Add a handful of ice cubes to the hot cast-iron skillet to create steam. Bake for 15 minutes at 400°F, then reduce the temperature to 350°F and bake another 40–50 minutes, until the internal temperature reaches 205°F.
Brush with butter: Remove from the oven and generously brush the top with melted butter.
Cool: Let cool in the pan for 5 minutes before transferring to a wire rack. Allow to cool completely for at least 2 hours before slicing. This is important to prevent a gummy center!
Store: Store in an airtight zip-top bag for 4–5 days. To freeze, slice the loaf and place parchment paper between slices in a freezer-safe bag.