Could be codependency, but also sounds a lot like Anxious Attachment style and often the two go hand in hand. Take a look at the book Attached (https://www.amazon.com/Attached-Attachment-Find-Keep-Love-Find-ebook/dp/B0049H9AVU/ref=sr_1_1?crid=6DY4TLF78SPI&keywords=attached&qid=1649359503&sprefix=attache%2Caps%2C204&sr=8-1) or some of the School of Life videos starting with this one - https://www.youtube.com/watch?v=2s9ACDMcpjA