There is no tax benefit for work performed in 2022.
You claim any energy improvement credits in the year the property was placed in service (when it was installed), regardless of when it was paid for. There was no electrical panel upgrade credit in 2022. Even though the law was passed in the middle of 2022, that provision did not take effect until 1/1/23.
Also, even if you did the work in 2023, the credit is only available if the reason you did the upgrade was it was necessary to install some other energy efficiency improvement that qualifies for a credit (such as a heat pump water heater or solar panels).