estimated taxes

I had to pay estimated taxes in 2021, but in 2022 worked for a group that withheld taxes, same for 2023.  I was penalized for not paying estimated taxes in 2022.  How do I stop being required  to pay estimated taxes.