Horizon Forbidden West is filled with resources and materials for you to sell and craft throughout your journey in the forbidden west. These materials all have their uses—some will allow you to craft arrows, traps, or other useful items like the fast travel packs. Horizon Forbidden West adds new resources, like the food resources.
Goldthorn Pepper is a food resource and it is used for purchasing food from cooks in Settlements. You will need to play a few hours before coming across your first settlement with a cook, which can be found at Chainscrape. The cook here will give you a side quest, which must be completed before unlocking the ability to get food. In order to make food, you will need to supply the cooking materials and they will cook food for you which will provide various buffs for Aloy.
Where do you find Goldthorn Pepper?
Goldthorn Pepper is a common food resource and is harvested from the Jungle Goldthorns plant. This plant is often found growing in dense jungles. You will first come across this plant in the opening hours of the game in the Far Zenith ancient ruins. Though it can be found all throughout the forbidden west in grass-dense areas.

For more on Horizon Forbidden West guides, check out How to turn off motion blur in Horizon Forbidden West and When does the Shieldwing unlock in Horizon Forbidden West?