This is a great question. Generally, the footnotes show that this is thought to be from Hosea 11:1 which says
When Israel was a child, I loved him,
and out of Egypt I called my son.
which explicitly says "Israel" ... not messiah, not son of man, not son of God ... nothing. How is this...