Define measure on a marked subdomain in dolfinx incorrectly

Please read Read before posting: How do I get my question answered?

Without an actual (minimal!) code we can run, we can only guess. The only guess I can make is that you are not getting a result of \pi (r_1)^2 and \pi (r_2)^2, because your mesh is (likely) formed by triangular or rectangular cells that will never have a curved edge able to perfectly identify an arc of the circle.