Compilation errors related to GameplayTagContainer.h in Unreal Engine 5.1.1

I’m having trouble compiling my project in Unreal Engine 5.1.1 when I include either of these two lines:

#include “GameplayTagContainer.h”
#include “GameplayTagsManager.h”

It throws many errors related to the GameplayTagContainer.h file. I’ve already tried including the module in the Build.cs file and .uproject file, but the issue persists. Does anyone have any suggestions for resolving this issue? Thanks in advance.