Sesame seeds also work as a substitute to pine nuts in pesto. To keep this pesto nut-free but with a similar nutty texture, if you don't have any sunflower or pumpkin seeds on hand, you can try adding roasted sesame seeds to the blend. All three options work well.