DHH of Basecamp had a long twitter thread about this. Their competitors bought “basecamp” as a keyword for google ads, effectively forcing basecamp to pay to stay #1 on searches for basecamp.
Google has/had no policies restricting this, unless of course, you guessed it, the keyword you are squatting is “google”.