Which any soon to be property owner would know before buying a place. If the rules were a surprise to Mr Khosla he should be suing his realtor and not the state.
Well, as a fellow swede I can say that this is only half the story, because not only do we have the very extensive right to roam law, but we also have an additional law regarding this in particular called "Strandskydd" (literally beach protection) which makes it very hard and exceptional to make a coast line private.
Spain - https://www.spanishpropertyinsight.com/legal/ley-de-costas-c... Sweden - https://visitsweden.com/about-the-right-of-public-access/ Australia - https://www.news.com.au/travel/travel-advice/travellers-stor...
and so on... all but a search query away.