I am no sparky, but I am pretty sure your feeder needs to be in conduit not free wire as shown. I think I would have put the panel to the stud bay at right and put the main at the bottom.
Calling
@wyliesdiesels
The plan was to put the subpanel above the conduit coming up from the foundation, but then I realized it would interfere with the door trim so I moved it over. As far as the conduit to the box, you are correct. I'm debating what to use. My build does not need to be inspected where I live but I still like to follow the NEC code. I like Brane's idea of putting some flex conduit on it. I have to sleep on it tonight.