You can set a custom filter in uBlock Origin to do this for you - here's an example filtering out Pinterest garbage:
google.##.g:has(a[href=".pinterest."]) google.##a[href=".pinterest."]:nth-ancestor(1)
google.##.g:has(a[href=".pinterest."]) google.##a[href=".pinterest."]:nth-ancestor(1)