Homemade almond extract using glycerine is completely safe. But if you have tree nut allergy then many alternative options are available including imitation almond extract.