Some people are very confused by IP, it’s actually simple.
Who owns a copyright? The author of the content.
In the case of software, it’s the person that types the code.
A copyright can’t be transferred without a signed written agreement, like a Work for Hire or Assignment.