Software that is sold as a service and requires ongoing maintenance like running in the cloud (and people to keep it running in the cloud) is opex not capex. Google Search is most definitely opex.
https://kpmg.com/kpmg-us/content/dam/kpmg/pdf/2023/tcja-chan...