I'm not sure if it helps. I use this Uri in Power Automate to get information who locked file in SharePoint online. _api/web/GetFileByServerRelativeUrl('')/lockedByUser. It returns JSON with information about user.
_api/web/GetFileByServerRelativeUrl('')/lockedByUser