Sorry, I was slightly off. It can only be aligned to the bottom or left now (no right or top alignment). This change was made with Windows 11.
Only the taskbar's icons can be aligned to the center or the bottom left of the taskbar at the bottom of the screen. The taskbar cannot be moved to the left, right or top of the screen in Windows 11, a huge regression.