No one knows for sure, since Google doesn't generally say anything about how their algorithm works. But it doesn't sound like accordion text is punished or discounted.
Does Google Crawl Accordion Content?
You will find many websites saying that Google does not crawl accordion content or hidden content behind tabs. This is not true. Dating back to at least 2013, Google has crawled and indexed hidden content behind tabs and accordions. In fact, in a 2016 interview with Gary Illyes, an analyst for Google Webmaster Trends, he confirmed that Google crawls this hidden content, indexes it, and does not penalize the website for its use when implemented using text like “Read More,” “Learn More,” and “Click Here” to direct users to this content.
Another representative with Google, John Mueller, also supported this statement in 2021 by confirming tabbed content is an acceptable design element used to increase user engagement with positive user experience and the content is crawled and indexed by Google. He clarified by saying that Google looks at everything in the HTML and any content that is visible or accessible to website users is included by Google in search engine results page rankings. So the answer to the question of does Google crawl accordion content is definitely yes, without question.
(There's a whole lot of articles on the topic; I picked one of the more recent ones, since Google is also famous for updating their algorithm.)