This is my EndOverlapFunction and works fine on my project.
UFUNCTION()
void OnOverlapEnd(UPrimitiveComponent* OverlappedComp, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex);
Don’t forget to use the UFUNCTION() macro.
Cheers!