In San Francisco, there are two seperate and unique things: 1. Rent control and 2: Eviction control (they are different and not the same).
Landlords can evict only if it falls under the just cause provisions of 37.9 (the local laws).
You can attempt an eviction of your roommates if you had them sign a provision 6.15 which states that they are not on the lease and understands that they are only roommates and nothing more.
Realtors are not attorneys and cannot and will not give legal advice; but as some experienced in this situation, landlords and tenants should always get practical (not legal) advice from a realtor specialist who is experienced in this area.
I am experienced in this area, but unfortunately, I only represent owners in the sale and purchase of these buildings.
I suggest that you seek advice from an attorney or another professional who can help you.