What to do with VAT payment showing as bank transaction

SOLVED

I submitted by previous VAT return and recently paid it via the HMRC website. Naturally, this payment shows as a transaction in my bank feed. The easy thing would be to assign it to the code for VAT, but I can’t. What am I supposed to do with this transaction?

If I just delete the transaction, by balance will be incorrect compared with my bank account.

In the VAT returns section it is marked as being paid. There is a possiblity I marked it as paid when it wasn’t, and had to get rid of the transactions that Sage subsequently recorded against by bank account. This was around the start of COVID-19 and the ability to delay VAT repayments. I can’t quite remember now.