This article says red peppers contain luteolin, which is supposed to be good for the brain, and where inflammation is implicated, for memory:
https://psychcentral.com/news/2010/10/15/feeling-more-forgetful-as-you-age-eat-peppers/19625.htmlLuteolin is also is carrots, celery, and olive oil, among other things, according to the article.
Note that peppers also are supposed to contain apigenin,
which also has brain benefits.