You must put public after GENERATED_BODY(), by default it private and it not allow static to be private
GENERATED_BODY()
public:
UFUNCTION(BluePrintCallable, Category = "DevotionLibrary")
static float GetVectorDistance(FVector A, FVector B);