Hello Giovanni
The redistribute ospf 1 match external
command will automatically redistribute both types of OSPF external routes. In this Cisco documentation, it gives this explanation:
Note: The configuration shows match external 1 external 2 and the command entered was redistribute ospf 1 match external. This is normal because OSPF automatically appends “external 1 external 2” in the configuration. It matches both OSPF external 1 and external 2 routes and it redistributes both routes into BGP.
I hope this has been helpful!
Laz