The hardest part is grounding the subpanel. They should have charged you MAYBE a $1,000. Maybe.
I would even be willing to have paid 4-5 grand.
I suspect contractors in this area are using inflation as an excuse to overcharge customers.
I could be wrong….