im not sure about Switzerland, but there are areas in Germany, where you can.
https://www.iamexpat.ch/expat-info/swiss-news/which-national...
I am looking at a 4 room apartment in a very nice villa next to a small national park right now, for 560€, with a train going twice an hour 15 minutes ride to the town with my potential next job. (In germany)
So salaries there are lower, but so is apparently rent. Way less than 40%, more like 20%.