I honestly got no sexual tension from the Foggy/Matt scenes. If anything it seemed to me to be played as a bit of a joke (Matt seemed to think for a minute Foggy was coming onto him, Foggy was embarrassed and swiftly clarified) and I saw nothing but good old-fashioned friendship in their talks in the flashbacks.