Codependency is a state in which when one person enables another person's destructive behavior.  The person with destructive behavior relies excessively on their enabler for emotional or psychological support.

Proverbs 24:24 warns those who enable sin:

Whoever says to the wicked, “You are in the right,”
will be cursed by peoples, abhorred by nations

Hopefortheheart.org created a PDF that addresses co-dependency Biblically.  See the link below.

https://www.hopefortheheart.org/pdfs/OLQR-pr-Codependency.pdf