What processor chip is in your MacBook Pro? Is it a 'base' M2 chip, a M2 Pro chip, or a M2 Max chip?
The 13" M2 MacBook Pro only supports one external monitor. There are workaround products to drive two or more displays in a second-class way, but there is no way to add more first-class hardware-accelerated video outputs.
I believe that 14"/16" MacBook Pros with the M2 Pro chip can support up to two external monitors, and that 14"/16" MacBook Pros with the M2 Max chip can support up to four external monitors. (Double-check specifications to be sure.)
If you have one of the machines with a M2 Pro chip or a M2 Max chip, is the dock a Thunderbolt dock, or just a plain USB-C one? Macs don't support DisplayPort MST daisy-chaining and will only drive two monitors off the same host port if (a) that port is a Thunderbolt port, and (b) the device connected directly to it is a Thunderbolt device such as a Thunderbolt dock. (There are a number of Thunderbolt docks that can drive two non-Thunderbolt monitors which have resolutions of 4K or less, if the Mac in question supports two or more external displays.)