In order to make the role of the Spirit clearer, Paul draws an analogy with the human spirit. The word spirit
here is used in the sense of soul,
the inner life of a person. Just as the spirit of a man knows his thoughts, so the Spirit of God knows God’s thoughts.
Paul is not claiming that the Holy Spirit is God’s soul.
The purpose of the comparison is to draw attention to the intimate knowledge that the Spirit (being God himself) has of God.
11 Qui donc, parmi les hommes, connaît les choses de l'homme, si ce n'est l'esprit de l'homme qui est en lui? De même, personne ne connaît les choses de Dieu, si ce n'est l'Esprit de Dieu.