Quit my job and become a trucker?

Being somebody who quit a job to drive a truck over 20 years ago that bit’s not a problem, my problem is you having to pay back the training cost, Of course you should pay back a percentage of the cost if you leave them before an agreed period of time, but to charge you for training is wrong.
If the company wants you they should pay for the training, it’s the lack of companies doing so which has lead to the much talked about driver shortage time bomb.
My company offered to pay for my Transport Managers CPC, but I decided to pay for it myself and do it during my holiday, then I felt I didn’t owe them, when I got my CPC and took over as the companies CPC holder I got a decent pay rise, which more than covered the cost of the course and spending 2 weeks of my holiday in a classroom.