Corticosteroids like dexamethasone Certain medications can also mimic cortisol in your body. This can lead to restlessness and trouble sleeping. Corticosteroid medications, like dexamethasone and methylprednisolone, (Medrol) are key examples. In most cases, insomnia from corticosteroids should be short-lived.