I think what you are looking for is a Change Data Capture (CDC) solution. This is going to require a system in the middle that can speak to both database systems. Note these implementations can be brittle (replication can fail) and take some tinkering to get working well.
I recommend you look in to tools such as Debezium (https://debezium.io), AWS Data Migration Service (DMS), or maybe some data lake implementation and scripts could be used (apache hudi, data bricks delta lake, or other).
Is it possible to make a logical replica between a postgresql 12 and a sql server 2019? Technically I want to make a multimaster logical replica to a subscriber and this in turn replicates to a MSSQL 2019 AlwaysOn server... Is it possible to make this type of structure or impossible? Please tell me...