"Ped. *" has the line set to visible in 3.0 in advanced workspace , was invisible in 2.x
Add a "Ped. *" line, and check Inspector: it shows the line to be set as "Line visible" in 3.0, but didn't in 2.x
And indeed on export to PDF the line does show.
It does not anymore once that "Line visible" gets unticked, (but apparently still shows on musescore.com, see #279510: Invisible pedal marks visible on musescore.com