You don't have to enjoy your job. You have 4 YoE. Maybe grind LeetCode and get a job in the next 6 months.
If 4 years of work can provide for 2 years of retirement, you can retire at 50 or so.
If 4 years of work can provide for 2 years of retirement, you can retire at 50 or so.