Google search doesn't work by default as the automation has to act on google's privacy popup.
Could be a regional issue.
My current hack is to launch the script NOT in headless mode and act on the google search privacy notice.
Works but not ideal if multiple queries