OK, it seems that there is no way to use expressions in a project connection manager. What I did now is using an Alias.
So I defined an alias DWH which points to my local server localhost. The other developer is using the same alias name but points to his local named instance.