What version of AE are you using? A social media vertical preset in AE.23 displays the frame ratio correctly. The calculations in your screenshot for frame ratio are only off by .01%, so it's probably a glitch in the AE version you are using. Pixel dimensions are what matters. If your comp is square pixels, it will render with the 9:16 aspect ratio you want.