There’s loads of recruitment. Plenty leave the RAF at your age and older and make a good second career in commercial aviation ( I left at 41 and am now TRE). If you decide to leave get a licence ASAP because you can’t really apply for a job without one. Is it a good investment? I would say so - unless you have some other money earning string to your bow it’s hard to imagine an easier career transition to a well paid future.
Ps. May sound ridiculous but before going down this road recommend getting the initial Class 1medical sorted
good luck