There are many articles online saying "in law only a mam can commit rape" but this is because they writers have interpreted "having a penis" that way. Many such articles were written around the time the SOA was made law, when fluid gender concepts were not so widely aired.
🐦🔗: https://n.respublicae.eu/AntonyHookLD/status/1618397446111105024
Here is the Scottish Act
https://www.legislation.gov.uk/asp/2009/9/contents
Here is the English & Welsh Act
https://www.legislation.gov.uk/ukpga/2003/42/contents
The rape definitions are very similar.
🐦🔗: https://n.respublicae.eu/AntonyHookLD/status/1618397996106022912