The level of enrichment they've been doing is higher than they need for power generation but it also isn't nearly enough to make nukes. A more reasonable explanation (given the assessments they aren't working on nukes) is that they were being deliberately provocative.
> So far as we know they never actually built one but they absolutely could and this was done under the previous leader
Right, they could, and didn't. Why? It was only 7 years from the discovery of fission to a proof of concept in the form of the trinity test. Either you assume a level of incompetence entirely divorced from Iran's efficacy on the international stage, or you accept they weren't trying.