Put the ricotta, egg, garlic, basil, sweet marjoram, and parsley in a medium bowl. Season with salt and pepper and stir until combined. Carefully, spoon the ricotta herb mixture inside of each squash blossom and twist them closed at the top. Dip the squash blossoms into the batter, making sure to coat all sides.