01 - Preheat oven to 350°F. Grease a 9-inch round cake pan and line with parchment paper.
02 - Whisk together flour, ground pistachios, baking powder, and salt in a bowl. Set aside.
03 - Beat softened butter and granulated sugar in a large mixing bowl until pale and fluffy, approximately 3 minutes.
04 - Incorporate eggs one at a time, beating thoroughly after each addition. Mix in vanilla extract.
05 - Gently fold in half the dry ingredients. Add milk, then remaining dry ingredients, mixing until just combined.
06 - Carefully fold fresh raspberries into batter, taking care not to crush the fruit.
07 - Pour batter into prepared cake pan and smooth surface evenly.
08 - Bake for 38 to 42 minutes until a toothpick inserted into the center emerges clean.
09 - Allow cake to cool in pan for 15 minutes before removing.
10 - Transfer to wire rack to cool completely. Dust with powdered sugar and sprinkle chopped pistachios if desired.