I have always been uneasy about defining a ratio as a comparison, because a difference is also a type of comparison. For numbers a ratio is a fraction. So if $a$ and $b$ are non-zero numbers then the ratio $a:b$ is the same thing as the fraction $\frac{a}{b}$. Many people are quite happy dividing quantities, but some may argue that only numbers can be divided. In either case we can say that
If you have two like quantities, their ratio is the number that you multiply one by to get the other one.
where two like quantities are two quantities of the same thing, e.g. mass, distance, or pure numbers.
With this definition a ratio is a "pure number" and BMI is indeed not a ratio.
Some books distinguish between a ratio and a rate. A rate is similar to a ratio but has units. With this understanding the Body Mass Index is a rate, which is is defined to be in $kg/m^2$. If you know your measurements in pounds and inches you must convert before calculating, or (equivalently) multiply by a conversion constant.
In practice one can use ratio form or fraction form for numbers and quantities, as long as care is taken with units.