USphereComponents showing up as "undeclared identifiers" despite necessary includes

Copy that, here are the source files and errors as they are now.

.h:


#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Character.h"
#include "GameFramework/CharacterMovementComponent.h"
#include "BehaviorTree/BehaviorTree.h"
#include "PlayerCharacter.h"
#include "TimerManager.h"
#include "ISpudObject.h"
#include "MotherCharacter.generated.h"

class USphereComponent;

UCLASS()
class ATTEMPTTWO_API AMotherCharacter : public ACharacter, public ISpudObject
{
	GENERATED_BODY()

public:
	AMotherCharacter();

	UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Spheres")
	USphereComponent* DetectionSphere;

	UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Spheres")
	USphereComponent* KillPlayerSphere;

.cpp:


#include "MotherCharacter.h"
#include "Kismet/GameplayStatics.h"
#include "MotherSpawner.h"
#include "TimerManager.h"
#include "Components/SphereComponent.h"

AMotherCharacter::AMotherCharacter()
{
	PrimaryActorTick.bCanEverTick = true;

	DetectionSphere = CreateDefaultSubobject<USphereComponent>(TEXT("Detection Sphere"));
	DetectionSphere->SetupAttachment(RootComponent);
	DetectionSphere->SetGenerateOverlapEvents(true);

	KillPlayerSphere = CreateDefaultSubobject<USphereComponent>(TEXT("Kill Player Sphere"));
	KillPlayerSphere->SetupAttachment(RootComponent);
	KillPlayerSphere->SetCollisionProfileName("OverlapAll");
}

Error list from output window:

Build started at 4:17 PM...
1>------ Build started: Project: AttemptTwo, Configuration: Development_Editor x64 ------
1>Using bundled DotNet SDK version: 6.0.302
1>Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" AttemptTwoEditor Win64 Development -Project="C:\Users\JakeS\OneDrive\Documents\Unreal Projects\AttemptTwo\AttemptTwo.uproject" -WaitMutex -FromMsBuild
1>Log file: C:\Users\JakeS\AppData\Local\UnrealBuildTool\Log.txt
1>Creating makefile for AttemptTwoEditor (command line arguments changed)
1>C:\Users\JakeS\OneDrive\Documents\Unreal Projects\AttemptTwo\Source\AttemptTwo\AttemptTwo.Build.cs : warning : Referenced directory 'C:\Users\JakeS\OneDrive\Documents\Unreal Projects\AttemptTwo\Source\AttemptTwo\C\Users\JakeS\OneDrive\Documents\Unreal Projects\AttemptTwo\Plugins\SPUD\Source\SPUD\Public' does not exist.
1>Building AttemptTwoEditor...
1>Using Visual Studio 2022 14.36.32546 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532) and Windows 10.0.22621.0 SDK (C:\Program Files (x86)\Windows Kits\10).
1>Determining max actions to execute in parallel (24 physical cores, 32 logical cores)
1>  Executing up to 24 processes, one per physical core
1>  Requested 1.5 GB memory per action, 19.41 GB available: limiting max parallel actions to 12
1>------ Building 7 action(s) started ------
1>[1/7] Compile [x64] Module.AttemptTwo.4.cpp
1>C:\Users\JakeS\OneDrive\Documents\Unreal Projects\AttemptTwo\Source\AttemptTwo\MotherCharacter.cpp(10): error C2059: syntax error: ';'
1>C:\Users\JakeS\OneDrive\Documents\Unreal Projects\AttemptTwo\Source\AttemptTwo\MotherCharacter.cpp(12): error C2065: 'DetectionSphere': undeclared identifier
1>C:\Users\JakeS\OneDrive\Documents\Unreal Projects\AttemptTwo\Source\AttemptTwo\MotherCharacter.cpp(13): error C2065: 'DetectionSphere': undeclared identifier
1>C:\Users\JakeS\OneDrive\Documents\Unreal Projects\AttemptTwo\Source\AttemptTwo\MotherCharacter.cpp(14): error C2065: 'DetectionSphere': undeclared identifier
1>C:\Users\JakeS\OneDrive\Documents\Unreal Projects\AttemptTwo\Source\AttemptTwo\MotherCharacter.cpp(16): error C2065: 'KillPlayerSphere': undeclared identifier
1>C:\Users\JakeS\OneDrive\Documents\Unreal Projects\AttemptTwo\Source\AttemptTwo\MotherCharacter.cpp(17): error C2065: 'KillPlayerSphere': undeclared identifier
1>C:\Users\JakeS\OneDrive\Documents\Unreal Projects\AttemptTwo\Source\AttemptTwo\MotherCharacter.cpp(18): error C2065: 'KillPlayerSphere': undeclared identifier
1>[2/7] Compile [x64] Module.AttemptTwo.2.cpp
1>[3/7] Compile [x64] Module.AttemptTwo.1.cpp
1>[4/7] Compile [x64] Module.AttemptTwo.3.cpp
1>Total time in Parallel executor: 2.38 seconds
1>Total execution time: 3.57 seconds
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command ""C:\Program Files\Epic Games\UE_5.3\Engine\Build\BatchFiles\Build.bat" AttemptTwoEditor Win64 Development -Project="C:\Users\JakeS\OneDrive\Documents\Unreal Projects\AttemptTwo\AttemptTwo.uproject" -WaitMutex -FromMsBuild" exited with code 6.
1>Done building project "AttemptTwo.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 10 up-to-date, 0 skipped ==========
========== Build completed at 4:17 PM and took 03.831 seconds ==========