Try removing them with sudo pacman -R package_name, deleting their folder in /home/$User/.cache/yay and then installing them again from the AUR with yay/paru.
Sorry, by “$User” I meant your username. Deleting those folders in .cache/yay should ensure a cleanbuild (hopefully with Python 3.11) when/if you reinstall.
I don’t see a structure like that, maybe in a different place?
[mark@mark-optiplex9020 ~]$ cd /home
[mark@mark-optiplex9020 home]$ cd mark
[mark@mark-optiplex9020 ~]$ ls -l
total 3365936
-rw-r–r-- 1 mark mark 0 Dec 29 19:16 cap_%d
drwxr-xr-x 2 mark mark 4096 Oct 2 2022 ‘Chart output’
drwxr-xr-x 2 mark mark 4096 Sep 29 2022 ‘Cowboy Videos’
drwxr-xr-x 33 mark mark 4096 Apr 21 18:30 ‘Current markets’
-rw-r–r-- 1 mark mark 187 Jan 5 12:49 derby.log
drwxr-xr-x 2 mark mark 12288 May 19 09:22 Desktop
drwxr-xr-x 3 mark mark 4096 May 2 10:58 Documents
-rw-r–r-- 1 mark mark 3446583445 Apr 8 00:06 ‘Dodgeball Unrated.mp4’
drwxr-xr-x 2 mark mark 12288 May 19 16:18 Downloads
-rw-r–r-- 1 mark mark 8153 Jul 25 2022 eos-log-tool.logs
-rw-r–r-- 1 mark mark 8153 Jul 25 2022 eos-log-tool.logs.bak
-rw-r–r-- 1 mark mark 28 Nov 2 2022 index.theme.pacsave
drwxr-xr-x 4 mark mark 4096 Oct 11 2022 ‘Intraday fib ratio projections’
drwxr-xr-x 2 mark mark 4096 Sep 15 2022 ‘Logarithmic cache’
drwxr-xr-x 2 mark mark 4096 Jul 10 2022 Miscellaneous
drwxr-xr-x 2 mark mark 4096 Apr 4 22:46 ‘MotiveWave Backup’
drwxr-xr-x 2 mark mark 4096 Nov 19 11:43 ‘MotiveWave Extensions’
drwxr-xr-x 2 mark mark 4096 Apr 7 00:30 Movies
drwxr-xr-x 2 mark mark 4096 Nov 11 2022 Music
drwxr-xr-x 4 mark mark 4096 Apr 11 21:06 Pictures
lrwxrwxrwx 1 mark mark 36 Jul 10 2022 “PlayOnLinux’s virtual drives” → /home/mark/.PlayOnLinux//wineprefix/
drwxr-xr-x 2 mark mark 4096 Jul 8 2022 Public
drwxr-xr-x 3 mark mark 4096 Feb 11 22:26 Python
drwxr-xr-x 2 mark mark 4096 Mar 2 15:18 Temp
drwxr-xr-x 2 mark mark 4096 Jul 8 2022 Templates
-rw-r–r-- 1 mark mark 617 Oct 9 2022 Untitled.ipynb
drwxr-xr-x 2 mark mark 4096 May 7 12:27 Videos
drwxr-xr-x 2 mark mark 4096 Mar 18 18:25 ‘woke bankers’
[mark@mark-optiplex9020 ~]$
So in .cache, there may be a folder called yay. In this folder is the cache of files used when you built each AUR package. There may be a folder for each of auto-cpufreq, idlex, starsector and thonny. Delete each of those and then you can reinstall whichever ones you want from the AUR (as I said hopefully with Python 3.11).
If there is no yay folder in .cache, no need to worry, you can just reinstall those packages.