The Bible does not support slavery. Indentured servitude is different. Also, these laws were given to Israel only, not to other nations. Jesus has fulfilled them now as the Messiah. For example, Paul now calls himself "a slave of Christ" (Rom. 1.1).

Fair Treatment of Slaves
1 “These are the regulations you must present to Israel.
2 “If you buy a Hebrew slave, he may serve for no more than six years. Set him free in the seventh year, and he will owe you nothing for his freedom. 3 If he was single when he became your slave, he shall leave single. But if he was married before he became a slave, then his wife must be freed with him.
4 “If his master gave him a wife while he was a slave and they had sons or daughters, then only the man will be free in the seventh year, but his wife and children will still belong to his master. 5 But the slave may declare, ‘I love my master, my wife, and my children. I don’t want to go free.’ 6 If he does this, his master must present him before God.[fn] Then his master must take him to the door or doorpost and publicly pierce his ear with an awl. After that, the slave will serve his master for life.
7 “When a man sells his daughter as a slave, she will not be freed at the end of six years as the men are. 8 If she does not satisfy her owner, he must allow her to be bought back again. But he is not allowed to sell her to foreigners, since he is the one who broke the contract with her. 9 But if the slave’s owner arranges for her to marry his son, he may no longer treat her as a slave but as a daughter.
10 “If a man who has married a slave wife takes another wife for himself, he must not neglect the rights of the first wife to food, clothing, and sexual intimacy. 11 If he fails in any of these three obligations, she may leave as a free woman without making any payment.


https://www.theologyofwork.org/old-t...-exodus-211-11

https://www.bibleodyssey.org/en/pass...-new-testament