I have found that I can store references to an animation asset in an editor-made struct using the type “Anim Sequence” (reference). I can for example make a data table of this struct and set an animation to each row, then get it in a blueprint script and play it.