Using UFUNCTION in custom BlueprintFunctionLibrary causing compiler error

Using UFUNCTION in class that derive from UBlueprintFunctionLibrary causing compiling error LNK2019. Here’s my code:

.h

UCLASS()
class NONAMESHOOTER_API UNNMBlueprintGlobalFunctions : public UBlueprintFunctionLibrary
{
	GENERATED_BODY()
	
public:

	UFUNCTION(BlueprintCallable)
	static void ValidateIPv4();
};

.cpp:

#include "NNMBlueprintGlobalFunctions.h"
#include "Networking.h"
    
static void ValidateIPv4() {
}

“Networking” module is enabled in build.cs.

Try declaring the implementation in your .cpp as follows:

 void UNNMBlueprintGlobalFunctions::ValidateIPv4() {
...
}

Such an elementary mistake, how could I not have noticed it? Still, yes, there was a mistake in that, thank you.