If you plan to build 2 different farms (different RD Broker / RD session Hosts / Web / Gateway) in that case, there is no issues.
For the licensing server, if a user connect to the 2019 farm and receive a 2019 RDS CAL, this CAL will work for the 2012 R2 farm as well. But the opposite will not work.
hth