What is this?

Some sort of plug next to bathtub. 2” hex on the top. Tub is draining slowly and I would like to know if it is associated with the tub drain before I attempt to remove it.