Preheat the oven to 350°F. Line two cookie sheets with parchment paper. Combine flour and baking soda in a bowl and set aside. Beat butter, peanut butter, and granulated sugar in a medium bowl with an electric mixer until well combined, about 3 minutes. Add egg and vanilla and beat well. Gradually add flour mixture until just combined.