It seems like this would ostensibly be illegal in most places. The reason e.g. social media sites in the US can post whatever and not be libel is because of section 230, but that only applies to user generated content. It's the reason that e.g. newspapers can be sued for publishing libelous/defamatory/etc content, yet the same author of such can post it on social media and those sites are legally immune. Kind of a weird law - especially given contemporary censorship regimes, but it's easy to understand the motivation.
But if you as a first party are publishing something directly, like Google is here, you're generally liable for what it says.