Hello @LucyKeile
Thanks for writing to us.
The search results display excerpts. And WordPress generates plain text when displaying the excerpt, it will remove all shortcodes and HTML. But some could bypass if it contains malformed content, or other 3rd party plugins is appending some content.
The solution is adding text excerpt manually into your page(s).
And since pages, does not have an excerpt by default, you will have to add custom codes into WordPress to be able to insert a page excerpt.
Please go through this link to guide you to do it:
Please follow the steps:
Step 1.
Edit your page or post and scroll to the very top and click “Screen Options”, make sure Excerpt is toggled “ON”.
Step 2.
Scroll down and find Excerpt meta box section and there, add your text excerpt.
Please have a look the screenshot.
Thanks