Disentangling hot Jupiters formation location from their chemical composition