Pihole -up won't update past core 5.17.2

pihole -up will not update to latest version pihole -up sayas everything is up to date but pihole -v shows a new version available in core
carl@pihole:~ $ sudo pihole -up
[✓] Update local cache of available packages
[i] Existing PHP installation detected : PHP version 7.4.33
[✓] Checking for git
[✓] Checking for iproute2
[✓] Checking for dialog
[✓] Checking for ca-certificates

[i] Checking for updates...
[i] Pi-hole Core: up to date
[i] Web Interface: up to date
[i] FTL: up to date

[✓] Everything is up to date!
carl@pihole:~ $ sudo pihole -v
Pi-hole version is v5.17.2 (Latest: v5.18.2)
web version is v5.21 (Latest: v5.21)
FTL version is v5.25.1 (Latest: v5.25.1)
carl@pihole:~ $

Raspberry PI 3B running bullseye

my debug is:
https://tricorder.pi-hole.net/4sDMAbtu/

I made some changes to dnsmasq.d files and some 3rd party lists

You are actually running v5.18.2:

*** [ DIAGNOSING ]: Core version
[✓] Version: v5.18.2
[i] Remotes: origin	https://github.com/pi-hole/pi-hole.git (fetch)
             origin	https://github.com/pi-hole/pi-hole.git (push)
[i] Branch: master
[i] Commit: v5.18.2-0-g5490a6ea

But your versions file has old information, causing the misleading message:
Pi-hole version is v5.17.2 (Latest: v5.18.2).

Try to run this command to update the file:

pihole updatechecker

Then try check the versions again with:

pihole -v

Thank you for letting me know I'm running the latest version.
I ran the updatechecker and have the same results:
carl@pihole:~ $ sudo pihole updatechecker
carl@pihole:~ $ sudo pihole -v
Pi-hole version is v5.17.2 (Latest: v5.18.2)
web version is v5.21 (Latest: v5.21)
FTL version is v5.25.1 (Latest: v5.25.1)
carl@pihole:~ $

I have the same issue. It won't update tried resetting too but seems the update checker file is not updating correctly after 5.17.2.

cd /etc/pihole
sudo mv versions versions.bak
pihole updatechecker

This fixed it for me.