Teleport outside of battle not working

I noticed that I can’t use teleport outside of battle to return to last healing place. Is that a new thing or a bug?

Where are you trying to teleport from?

Some places like buildings and certain caves(secret bases etc) don’t allow teleporting. Not sure on tesseract(while in past) but if it allows when you’re in the past, it might bug your save out.