“I deeply regret any pain I may have caused,” wrote the rapper formerly known as Kanye West, who is releasing an album next month.