Stop in for a cup of coffee

That looks like it might fit a 3/8 rachet or extension with no socket, just the square that the socket fits over. At least that is what I would have tried.
The black part you see is machined or pressed into the fastener head . Like a Torx headed bolt.