How to bulk transfer ownership of Google docs inside a Google drive?

I found the solution:

There are exceptions to this. If you’re the administrator of your company’s Workspace account, you can change the owner of any file or folder stored on that account, as long as it was created by someone on the same account.

Likewise, if your business uses a Workspace account, and your contractor or employee is on that same account, then they can transfer ownership of their files to other people within the company themselves.