FAQPage schema is a schema.org type that marks up a list of questions and their answers shown on a page.
Each question becomes a Question item with an acceptedAnswer. Google narrowed FAQ rich results in August 2023 to well known authoritative government and health sites, so most businesses no longer see the expandable snippet in search.
The markup still has value. It states, in a format any parser can read, exactly which questions the page answers and what the answers are, which is precisely the shape an answer engine looks for.
Keep the marked up text identical to the visible FAQ. Answers that exist only in the code are a guideline violation and a trust problem.