Here the given trick is to go to Vault 22 and use the central elevator (requires repair skill level 50). Update: I can confirm the Vault 22 method worked for me successfully recovered Rex (on PC). I have not had this problem myself so cannot test.
Fallout Wikia has some tips on recovering lost companions who do not appear in either their original location or the Lucky 38.