I've been in contact with MathWorks support and we've solved this issue.
Basically, if you follow the link below:
You can see a list of OS for Raspberry Pi. MATLAB doesn't support the latest versions of the OS.
What you need to do is follow the link below:
And download the file named "2022-09-22-raspios-bullseye-armhf.img.xz".
Then, you can install the OS onto your SD Card using the normal method.
I used balenaEtcher to decompress and flash the OS onto the SD card.
The development team are now aware of this issue and will look into fixing it for future OS.
Hope this helps.