There are many ways to repair your credit score and this article from This is Money is very informative www.thisismoney.co.uk/money/cardsloans/article-1585131/Improve-credit-rating-history-score.html
As is the following detail on the Money Advice Service website: www.moneyadviceservice.org.uk/en/articles/how-to-improve-your-credit-rating
Just be aware...
We are not regulated to give personal financial advice - This isn’t full-fat regulated financial advice. Boring Money is a publisher and not regulated by the FCA.
This means we can't help with specific personal circumstances or recommend specific investment products. It also basically means that if we say something daft, you have no recourse to come back and complain.
We’re only allowed to give you a steer or share an opinion or tell you the facts - That said, we promise that our answer to you is an independent unbiased perspective with no commercial gain to make. If you need regulated financial advice, you can find a good adviser via sites such as Unbiased & Vouchedfor.