They are very likely permanently lost, unless the contract has a specific recovery function (which is rare)