Heat the oven to 375°F. Grease and flour a 9-inch round cake pan and line its base with parchment.
Whisk flour, baking powder, baking soda, and salt in a medium bowl.
Beat butter and 1 cup sugar until combined. Beat in 2 eggs and vanilla, then add the flour mixture alternately with buttermilk, mixing just until smooth.
Beat cream cheese with the remaining 1/4 cup sugar. Beat in the remaining egg and lemon zest until creamy.
Spread half the batter in the pan. Add the cream cheese layer, then carefully spread the remaining batter over it.
Bake for 20 minutes. Gently press raspberries into the partially set top, then bake 25 to 30 minutes more, until puffed and a toothpick comes out clean from the cake portion.
Cool in the pan for 10 minutes, loosen the edge, transfer to a rack, and dust with powdered sugar if using.