It's also pretty hilarious to say that teachers "moaning" is the issue. Once you start an ITT course, you pretty quickly get out on placement, and see the state schools are in. The drop out rates on PGCEs etc are really high!
I actually do think remote working has had a huge impact on teaching. It used to be, even say 5 years ago, that in certain parts of the country, there weren't that many highly paying jobs, and teaching was, in some cases, one of the few options to bring in a decent, reliable salary. Now people can work remotely, and so they aren't reliant on the options in their local area only.
Teaching also appealed to people with young families- a teacher parent means not paying for childcare in the holidays, for starters. But now remote and flexible working is often better for parents, so again, teaching loses out.
The only way to make teaching attractive to people is to significantly improve both the conditions and the pay- the pay has to outcompete other jobs which have better perks, in order to be attractive. The pay progression has to be really good, and not the sort of situation where one bad class, or a line manager who doesn't like you can hold it up. Pay enough to make part time working really viable for people.
The pension is irrelevant to a lot of young teachers, btw, and a significant proportion of ECTs can't afford to pay in, anyway.
Instead of always dumping additional work on teachers, the workload should be reduced. We should get rid of the bit in the STPCD that says "reasonable hours for duties needed to discharge the job" and the expectation should be that teachers can usually do most of their job within a normal working day of, say, 8-4. Yes, there might be some exceptions for parents evenings etc, maybe at certain "crunch points" of the year, but the idea that people who are working 7.30-5 are still taking work home every weekend is ridiculous.
This would likely need a significant increase in PPA, which would have to be funded, too. Maybe we could try to reduce class sizes whilst we are at it.
Yes, all of this would be really expensive, but long term, investing in education will massively benefit the economy.