It should be removed or mentioned from/in docs here. This should be used instead.
This will be fixed in pytest 7.0.1 (not released yet).