Google result snippet shows badge text for a Contributor page

Google has picked up the text of the "Contribute" badge for this page: https://docs.gitlab.com/ee/development/feature_flags/

Google result Docs page
image image

At this time, I haven't seen this on any other pages in Google results.

Is there a way we can explicitly prevent this? Maybe something like this: https://webmasters.stackexchange.com/questions/81442/how-do-i-prevent-google-from-indexing-text-that-is-generated-by-javascript

Edited by Sarah German